Skip to content

markdown_it - texmath / dollarmath #202

Answered by chrisjsewell
Uzay-G asked this question in Q&A
Discussion options

You must be logged in to vote

Heya, yes indeed you would need to use something like mathjax or katex to convert the "identified" math to rendered items.

I have only focussed on creating these plugins to generate the math syntax tokens, so that they can be passed to sphinx to do the actual rendering (via mathjax), and so haven't looked much into "direct" rendering I'm afraid.

As mentioned in the docs, texmath is directly derived from https://github.com/goessner/markdown-it-texmath, and you can see how that uses katex.
Ideally you would want a "pure-python" alternative to texmath.katex.renderToString(tex, options) (e.g. a complete version of https://github.com/tabatkins/katex),
or the math would need to be tagged in suc…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Uzay-G
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants