widcardw / asciimath-parser

https://asciimath.widcard.win
MIT License
13 stars 3 forks source link

Compatibility with MathJax #17

Closed TheWiseMan closed 8 months ago

TheWiseMan commented 8 months ago

Hey there, can your packages be used as a mathjax extension ?

widcardw commented 8 months ago

Yes, of course. This package simply parse asciimath into LaTeX formulas, so the pipeline should be

                     am-parser               KaTeX/MathJax/LaTeX 
asciimath formula -------------> tex -------------------------------> your document
TheWiseMan commented 8 months ago

Thanks a lot, also I'm currently not using Node, can I use your source files outside of their packages ?

widcardw commented 8 months ago

I'm not sure how to compile it into wasm or other libs... I have created a cli that can parse a file with asciimath into tex file, and it is compiled by node.

TheWiseMan commented 8 months ago

Thanks a lot for your answers, I managed to do what I wanted, I'll send it to you after refactoring (as an example of using your asciimath with mathjax for browsers)