You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to figure out #699 I discovered that math is now 404:
Maybe using an external service to render the TeX wasn't such a good idea after all... What are the chances we can use KaTeX HTML/CSS output for this?
Implementation sketch
Link to katex.min.css to output if formula exists. Now linking to an external CSS is really silly for an e-mail, but https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css makes extensive references to fonts and other assets, and we are never getting them all.
For each formula block, call katex.renderToString() on it and paste in the resulting HTML. If the block is not inline, add { displayMode: true }.
Other ideas
Run mathjax and paste the SVG in -- possibly cheaper than getting the CSS, now that I think about it! Run MathJax.tex2svg() on the string, be sure to respect the inline-ness and set { display: false } if the block is inline.
The text was updated successfully, but these errors were encountered:
When trying to figure out #699 I discovered that math is now 404:
Maybe using an external service to render the TeX wasn't such a good idea after all... What are the chances we can use KaTeX HTML/CSS output for this?
Implementation sketch
katex.renderToString()
on it and paste in the resulting HTML. If the block is not inline, add{ displayMode: true }
.Other ideas
Run mathjax and paste the SVG in -- possibly cheaper than getting the CSS, now that I think about it! Run
MathJax.tex2svg()
on the string, be sure to respect the inline-ness and set{ display: false }
if the block is inline.The text was updated successfully, but these errors were encountered: