You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local function to_math(root, style)
if root[0] == 'mrow' then
root[0] = 'math'
else
root = {[0] = 'math', root}
end
root.xmlns = 'http://www.w3.org/1998/Math/MathML'
root['xmlns:tex'] = 'http://typesetting.eu/2021/LuaMathML'
if style < 2 then
root.display = 'block'
end
root = {[0] = 'span', ['xmlns']='http://www.w3.org/1999/xhtml',root}
return root
end
but then it does this also on top level math elements. I got lost trying to see the best way of just detecting these nested cases.
Ideally if \text has just text it would just make an mtext but if it has any document-level markup, including nested math, then there should be an html span to get back to document level tagging.
The text was updated successfully, but these errors were encountered:
nested math is currently generating
<math>
child of<mtext>
which is invalidProduces
in the
-luamml-mathml.html
file.I can wrap the math in an html span which makes it valid again
with
but then it does this also on top level math elements. I got lost trying to see the best way of just detecting these nested cases.
Ideally if
\text
has just text it would just make anmtext
but if it has any document-level markup, including nested math, then there should be an html span to get back to document level tagging.The text was updated successfully, but these errors were encountered: