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

什么时候hexo的Markdown语法能支持MathJax的语法 #3750

Closed
eonun opened this issue Oct 8, 2019 · 3 comments
Closed

什么时候hexo的Markdown语法能支持MathJax的语法 #3750

eonun opened this issue Oct 8, 2019 · 3 comments

Comments

@eonun
Copy link

eonun commented Oct 8, 2019

什么时候hexo的Markdown渲染能支持MathJax的语法,虽然有hexo-math插件,但兼容性不太好,建议官方渲染其就能渲染,现在的Markdown编辑器都有对MathJax的渲染,但hexo却不支持-_-

@yoshinorin yoshinorin added the question Needs help in usage label Oct 8, 2019
@curbengh
Copy link
Contributor

curbengh commented Oct 13, 2019

Are you using hexo-renderer-marked?


Anyhow, even if you use hexo-renderer-markdown-it, the thing is, the upstream marked and markdown-it don't support it because it's MathJax is not part of Markdown (AFAIK). But I understand it's commonly used in conjunction with Markdown, so it can be a feature request.

Let me know which renderer you use, I'll move this thread to the relevant repo.


Can you give more details on the compatibility issues you experienced with hexo-math? If we want to support Mathjax in a Markdown renderer, most probably we'll do it using hexo-math (i.e. add hexo-math as dependency in hexo-renderer-marked). So, if hexo-math has compatibility issue in the first place, the integration wouldn't look good, so we would appreciate if you can give more details.

@stevenjoezhang
Copy link
Member

stevenjoezhang commented Oct 13, 2019

@eonun Try this plugin:
https://github.com/next-theme/hexo-filter-mathjax

@curbengh curbengh added feature-request and removed question Needs help in usage labels Dec 9, 2019
@curbengh
Copy link
Contributor

curbengh commented Aug 11, 2020

Hey @eonun, I am rewriting hexo-math atm (hexojs/hexo-math#130). It's ready for testing, just install it by $ npm install hexo-math@curbengh/hexo-math#overhaul. If there is no issue, I plan to release it on this weekend. Temporary usage guide is here (readme.md).

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

No branches or pull requests

4 participants