Do not export the content of InsetMathBoxed as text in MathML

\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

(cherry picked from commit 1186d90edf)
This commit is contained in:
Jean-Marc Lasgouttes 2024-07-23 23:44:58 +02:00
parent 458ce0fdba
commit 2baa292314
2 changed files with 5 additions and 1 deletions

View File

@ -402,7 +402,9 @@ void InsetMathBoxed::infoize(odocstream & os) const
void InsetMathBoxed::mathmlize(MathMLStream & ms) const
{
mathmlizeHelper(ms, cell(0), "class='boxed'");
ms << MTag("mrow", "class='boxed'");
ms << cell(0);
ms << ETag("mrow");
}

View File

@ -49,6 +49,8 @@ What's new
* DOCUMENT INPUT/OUTPUT
- When exporting to MathML, the argument of the \boxed{} macro is now
correctly treated as math.
* USER INTERFACE