Add class attribute for \mathbb in XHTML output.

Patch from Josh.
This commit is contained in:
Richard Heck 2016-06-29 22:47:21 -04:00
parent 04b8f5cdc4
commit e3625b5b80

View File

@ -203,9 +203,15 @@ void InsetMathFont::mathmlize(MathStream & os) const
// no support at present for textipa, textsc, noun // no support at present for textipa, textsc, noun
if (!variant.empty()) { if (!variant.empty()) {
os << MTag("mstyle", "mathvariant='" + variant + "'") if (tag == "mathbb") {
<< cell(0) os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
<< ETag("mstyle"); << cell(0)
<< ETag("mstyle");
} else {
os << MTag("mstyle", "mathvariant='" + variant + "'")
<< cell(0)
<< ETag("mstyle");
}
} else } else
os << cell(0); os << cell(0);
} }