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

feature request : optional MathJax support #722

Closed
scp-r opened this issue Feb 20, 2016 · 8 comments
Closed

feature request : optional MathJax support #722

scp-r opened this issue Feb 20, 2016 · 8 comments

Comments

@scp-r
Copy link

scp-r commented Feb 20, 2016

Here‘s an example, which works:

https://gist.github.com/3846masa/cde99a18a8d7ad225cf7

@lejafar
Copy link

lejafar commented Feb 22, 2016

KaTeX is the future of math typesetting for the web.

KaTex vs. MathJax:
katex-comparison

@lejafar
Copy link

lejafar commented Feb 22, 2016

I've submitted a pull request #723 to ignore everything between $ or $$ to allow the use of KaTeX or MathJaX without the user having to worry about using _ or * in TeX formulas

@scp-r
Copy link
Author

scp-r commented Feb 28, 2016

Thanks a lot for your work, and sorry for my late...
I've tested your code in vscode and found a bug:

bug

how to fix it? I know little about js.

@lejafar
Copy link

lejafar commented Feb 28, 2016

Thanks for pointing out, I guess I should've made it a block-level grammar rule, I'll change the code and do so more extensive testing ...

@Feder1co5oave
Copy link
Contributor

I implemented this a while ago to use it with MathJax (I'll definitely have a glance at KaTeX since it looks promising). I use it regularly and I find it is quite stable.

master...Feder1co5oave:0341a2f

Basically you parse your markdown which includes $ ... $ (inline math) and $$ ... $$ (block level displaymath) tags, and then run MathJax.Process on the container you put your generated html code into.

@anaderi
Copy link

anaderi commented Nov 7, 2016

would be nice to have it merged if no issues are found. (works fine for me so far)

@wookayin
Copy link

wookayin commented Aug 9, 2017

Any updates?

@joshbruce
Copy link
Member

Closing for now. Please see #956

See two targeted Markdown specifications.

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

6 participants