Closed majiayu000 closed 5 months ago
I think you're just forgetting about escape characters in Javascript strings. When you want to output a \
you have to add \\
inside a string.
Seems not a
\
question.
Have you added $
as a delimiter in your config? At least you're no longer getting Math input error
so you also had a problem with escaping it seems. $
is not a default MathJax delimiter so you have to specify it. Try using $$
. If that works, then you need to specify $
as a delimiter as well.
Thanks for your patients. After I using config, it worked. I did not see these configs.
No problem :) Feel free to close this ticket if the problem is solved :)
\frac{1}{2}
I meet another question. How can just display a latex without any \\
or (
.
Thank you!
You can't. MathJax operates on delimiters. You can use manual typesetting and provide the string you want to typeset like
<MathJax
renderMode={"pre"}
typesettingOptions={{ fn: "tex2chtml" }}
text={`x^4 = 100`}
/>
but I wouldn't recommend that.
Ok, so the question is to discover the latex string. I will try, thank you again!
Some latex like
$12 - \frac{7}{11}$
.If put this in mathjax, this can display, but cant here.
![image](https://github.com/fast-reflexes/better-react-mathjax/assets/19658300/bd697844-8b6f-438a-b814-4504fa2a8207)