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

百分号不渲染 #65

Open
xuehuasu opened this issue Jun 1, 2024 · 1 comment
Open

百分号不渲染 #65

xuehuasu opened this issue Jun 1, 2024 · 1 comment

Comments

@xuehuasu
Copy link

xuehuasu commented Jun 1, 2024

我确定markdown中其它数学公式都正常显示,直到遇到百分号:
当渲染到%时,当前公式就被中断,比如:
$$
gcd(a,b)=gcd(b,a%b)
$$
正常渲染是这样:
image
hexo是这样:
image

更复杂一点的:
$$
(\frac{a}{b}%m)=(\frac{a}{b}%m)*bk%m=ak%m
$$
正常渲染是这样:
image
hexo也在%卡住了:
image

@stevenjoezhang
Copy link
Member

百分号是LaTeX里面的注释,我试了像xelatex这种引擎也是不渲染的。
你可以尝试进行转义,把%替换为\%或者\\%应该就行了

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