making remark-math more useful than it is right now (at least as a standalone package) #698
-
Hello! Here is an example md. $ x + 1 = 2 $.
$$
x + 1 = 2
$$ Wouldn't it be great if <p><span class="math math-inline">\(x + 1 = 2 \)</span></p>
<div class="math math-display">\[x + 1 = 2\]</div> Including delimiters in the output html will make remark-math more useful as a stand alone package than it is right now. Yes, Pandoc produces similar result. If this is done, users can easily use Katex client-side scripts to render Math on browsers without the need of Back to topic: what I am proposing is giving users a choice to either client-side or server-side Katex/Mathjax because as of right now, to my understanding, if you want to have Math in markdown, then you have to use remark-math which again gets useful only when used together with server-side method of rendering Math i.e OR Is there already some way to do this and I'm not looking at the right place? If so, please help this poor soul. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Client side JavaScript is typically much heavier than HTML. Especially for bigger libraries like KaTeX and MathJax, the impact engines having to parse and run all that JavaScript is giant, compared to shipping HTML down the write. |
Beta Was this translation helpful? Give feedback.
rehype-mathjax
has a browser option that does this?Client side JavaScript is typically much heavier than HTML. Especially for bigger libraries like KaTeX and MathJax, the impact engines having to parse and run all that JavaScript is giant, compared to shipping HTML down the write.
Plus you’d still have a dependency, but in
<script>
tags.