Open belonesox opened 6 months ago
Pardon, I would need the actual code, as I cannot see images. Please paste your examples here.
OK, I updated description (the only screenshot I left to show, that VSCode/KaTeX works with it…).
OK with description of the issue?
OK with description of the issue?
Very helpful indeed.
I don't have the time ATM to dig deeper in the code, but it looks indeed unfortunate. If you would have the time to look into it, I would appreciate it.
Thanks!
Consider following case — math environment in markdown math mode
$$
:VSCode preview / KaTeX works OK with it (see screenshot). In pandoc JSON we have
Unfortunately, GladTeX nest all this in "[" "]" (and latex compilation failed, because "Erroneous nesting of equation structures"`)
Probably there is planned some detection of mathenvs (
set_latex_environment
), but the function is not used still.May be for displaymath node just check that the node text starting with
\begin{
and then not wrap such nodes with anything? (without detecting name of the environment)If this OK, I can patch it...