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

如何避免不必要的inline渲染 #12

Closed
leonfancy opened this issue Mar 29, 2020 · 4 comments
Closed

如何避免不必要的inline渲染 #12

leonfancy opened this issue Mar 29, 2020 · 4 comments
Labels
question Further information is requested

Comments

@leonfancy
Copy link

假如我有一句话是

这支笔价格是$2.4,那把直尺价格是$3.5。 

两个$...$之间的内容也会被当成公式渲染。请问有办法避免这种情况吗?

@stevenjoezhang
Copy link
Member

mathjax:
  single_dollars: false # enable single dollar signs as in-line math delimiters

single_dollars 设置为 false

@leonfancy
Copy link
Author

有没有办法即能让$...$渲染公式,又可以避免上面那种错误。比如不需要渲染的地方,使用\$来转义。

@stevenjoezhang
Copy link
Member

我不确定,你可以试一下。或者这样写

这支笔价格是`$2.4`,那把直尺价格是`$3.5`。 

$符号放到代码块里

@stevenjoezhang
Copy link
Member

这更多的是 MathJax 甚至 LaTeX 本身的局限性,恐怕我无法解决。

@stevenjoezhang stevenjoezhang added the question Further information is requested label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants