]> git.lyx.org Git - features.git/commit
MathML in HTML: don't escape <> for a raw LaTeX output.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 20 Mar 2024 23:29:23 +0000 (00:29 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 20 Mar 2024 23:29:23 +0000 (00:29 +0100)
commit16660d12b4333f6486259048dec2b0a2e48a64d9
treebc00988eb0b94efab9fe37863d2157c588647d76
parent3f790725d9fdf6f6266534cb8bc98b54cc164129
MathML in HTML: don't escape <> for a raw LaTeX output.

In some cases (I only found numbered equations), the LaTeX output still has a bit of HTML. For numbered equations, using \tag{X} (as suggested in https://www.lyx.org/trac/ticket/13048) would require fiddling with the output. KaTeX doesn't support \label. This patch is probably the easiest and most reliable fix.

Fixes https://www.lyx.org/trac/ticket/13048.
autotests/export/xhtml/math_output_latex.lyx [new file with mode: 0644]
autotests/export/xhtml/math_output_latex.xhtml [new file with mode: 0644]
src/mathed/InsetMathHull.cpp