Use mpadded for \raisebox MathML (#876)

* Use mpadded for \raisebox MathML

* Add MathML snapshot
This commit is contained in:
Ron Kok
2017-09-13 18:29:09 -07:00
committed by Kevin Barabash
parent dbc5a74ebd
commit a358c5a94c
5 changed files with 35 additions and 5 deletions

View File

@@ -74,6 +74,27 @@ exports[`A MathML builder should make prime operators into <mo> nodes 1`] = `
`;
exports[`A MathML builder should use <mpadded> for raisebox 1`] = `
<math>
<semantics>
<mrow>
<mpadded voffset="0.25em">
<mrow>
<mtext>
b
</mtext>
</mrow>
</mpadded>
</mrow>
<annotation encoding="application/x-tex">
\\raisebox{0.25em}{b}
</annotation>
</semantics>
</math>
`;
exports[`A MathML builder should use <msupsub> for regular operators 1`] = `
<math>

View File

@@ -50,4 +50,8 @@ describe("A MathML builder", function() {
it('should use <msupsub> for regular operators', () => {
expect(getMathML("\\textstyle\\sum_a^b")).toMatchSnapshot();
});
it('should use <mpadded> for raisebox', () => {
expect(getMathML("\\raisebox{0.25em}{b}")).toMatchSnapshot();
});
});