How can I render all inline formulas in $..$
devil6117 opened this issue · comments
Thank for your KaTex, this is a good tool for studying. but I'm in trouble.
I try to type an inline formula, but it isn't working. if I type a block formula, it is working and show prefect.
I configured it as required with https://katex.org/docs/autorender.
Here's what I configured.
Here's the render in my website and the source code.
Build Tool: Hugo v0.123.7
Build environment: GitHub Codespaces
Web browser: Microsoft Edge v122.0.2365.66
I'm not a native speaker of English. I'm sorry my description wasn't clear enough.
Presumably, Hugo is adding extra HTML tags that makes autorender not detect your equations. Inspecting the elements (or posting some generated HTML) would help diagnose.
You might explore a plugin specific to Hugo. I found https://gohugo.io/content-management/mathematics/ which may do what you want.
Presumably, Hugo is adding extra HTML tags that makes autorender not detect your equations. Inspecting the elements (or posting some generated HTML) would help diagnose.
You might explore a plugin specific to Hugo. I found https://gohugo.io/content-management/mathematics/ which may do what you want.
Prof Demaine,
Good afternoon, thank you very much for your reply.
I tried to find more relevant documentation. I even want to change to pandoc, it may render well.
But I But I choose to continue using KaTeX. I considered HugoBlox, it was not compiled successfully. I still need to get the theme if it could work.
I didn't read the official documentation of Hugo and KaTeX carefully. it's my mistake.
As you can see, it works correctly.
solution: change "$...$" to "\(...\)".
this is not KaTeX's bug.
it's not working in vscode, no possible, there is no one-size-fits-all tool.
by the way, thanks for your lesson.
this learning notes is learning for your lesson —— Introduction to algorithm