-
Notifications
You must be signed in to change notification settings - Fork 4
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
Can it work with AsciiMath? #35
Comments
No, KaTeX does not support AsciiMath input but we can use this library which converts AsciiMath to TeX. |
Done! You can now allow this syntax from the extension's settings. Don't forget to clear your cache ( |
Awesome! :) Thank you very much. |
Bug reports for it are ok? I've seen that AsciiMath and KaTeX don't work together, or one works, or the other one. |
of course!
can you provide a formula for me to take a look at it? Oh I see what you mean now, you can't do proper TeX when you have AsciiMath enabled - but this is expected. Perhaps we need some custom delimiters to parse AsciiMath-only? I see the official delimiter for this syntax is backtick but we can't use that for obvious reasons. I think I'll add a new setting for AsciiMath delimiters so you can set this to anything you want and I'll add a new checkbox right under the text editor buttons - labaled as "AsciiMath only". So when you click it, it'll switch the TeX delimiters into AsciiMath delimiters. TLDR; there will be standalone delimiters for AsciiMath, and a new checkbox under the text editor buttons labeled as "AsciiMode-only". |
check out See it in action here: https://i.imgur.com/PEG1psE.mp4 ...equations that I've used in that video: AsciiMath: LaTeX: |
Awesome! it is very cool |
Sources:
https://docs.mathjax.org/en/latest/input/asciimath.html
http://asciimath.org/
The text was updated successfully, but these errors were encountered: