docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const &) const
{
if (getType() == hullSimple)
- xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"");
+ xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
else
- xs << StartTag("math", "display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"");
+ xs << StartTag("math",
+ "display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
MathStream ms(xs.os());
InsetMathGrid::mathmlize(ms);
xs << EndTag("math");
void InsetMathLim::mathmlize(MathStream & os) const
{
- os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
+ // FIXME XHTML We need a form of MTag that takes attributes.
+ os << "<munder>"
+ << "<mo form='prefix'>" << "lim" << "</mo>"
+ << "<mrow>" << cell(1) << "<mo>→</mo>" << cell(2) << "</mrow></munder>"
+ << "<mfenced open='(' close=')'>" << cell(0) << "</mfenced>";
}