Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于数学公式的展示解决方案 #184

Open
OnHaiping opened this issue Sep 10, 2024 · 4 comments
Open

关于数学公式的展示解决方案 #184

OnHaiping opened this issue Sep 10, 2024 · 4 comments

Comments

@OnHaiping
Copy link

不知道大家有没有类似的需求,就是需要在markdown笔记展示数学公式

我本人之前在学习Machine Learn的时候很需要记录数学公式

Note

例如:
$$
F_1score = 2 \times \frac{P \times R}{P + R}
$$

如下图中所示:
image-20240910094654642

目前在gmeek上我尝试了不少方法,下面是我当前能够正常显示的解决方案:
在config.js中添加以下字段:

"script":"<script async type='text/javascript' src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default'></script>"

不过现在只能识别公式块

行内公式还无法正常显示,不知道有没有大佬有解决方案,欢迎交流。
:)

@Meekdai
Copy link
Owner

Meekdai commented Sep 10, 2024

Gmeek 默认支持插入数学公式的 #51

@OnHaiping
Copy link
Author

啊,这样么,可是我这公式是不显示的

如下图:
Snipaste_2024-09-10_17-15-09

大佬求解
: )

@Meekdai
Copy link
Owner

Meekdai commented Sep 11, 2024

OnHaiping/blogs#9
我看你这篇,你github issue页面也没有渲染出公式啊,你先学习一下语法,在github上能渲染,Gmeek也就能。肯定是你写的不对。

https://blog.meekdai.com/post/ban-dao-ti-zhi-leng-qi-%28TEC%29-de-qu-dong-yu-kong-zhi.html
我这篇里面用了些数学公式的,都是正常渲染的。

@OnHaiping
Copy link
Author

ok,我之前的都是直接从typora上粘贴过来的,按理来说应该是能正常识别到的,我也挺奇怪为什么不能正常显示,再手敲一遍似乎就好使了,可能是语法有点问题

感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants