Why converted formula lost its delimiters? #917
Replies: 2 comments
-
Heya, I'll copy exactly what chatGPT told me lol: You can configure MathJax to process TeX notation without wrapping it in $ symbols, but only within elements with a specific class, by combining the processEscapes and processClass options. Here is an example of how you can configure tex2jax to process TeX notation without wrapping it in $ symbols, but only within elements with the class math: MathJax = {
options: {
preprocessors: ["tex2jax"],
tex2jax: {
processEscapes: true,
processClass: "math"
}
}
}; With this configuration, MathJax will process any TeX notation it finds in the text of your page, but only within elements with the class math. It's worth noting that you should make sure that you have correctly added the class math to the span elements that you want to be processed by MathJax. Also, you need to make sure that you have included the MathJax library in your HTML file and configured it correctly before running this code. |
Beta Was this translation helpful? Give feedback.
-
@chrisjsewell Thanks, but it is an outdated answer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use
markdown_it
to convert Markdown to html, but the converted formula lost its delimiters, which caused my mathjax cannot render the formula, my mathjax confirmation is :How can I get it work?
Code for conversion :
Beta Was this translation helpful? Give feedback.
All reactions