test: add mtext bold-fraktur text use case
This commit is contained in:
parent
758767e14c
commit
5464060621
@ -1444,5 +1444,19 @@ describe('#convert', () => {
|
||||
|
||||
expect(result).toBe('\\mathfrak{Creepy}');
|
||||
});
|
||||
|
||||
describe('mtext with mathvariant attribute setted as "bold-fraktur"', () => {
|
||||
const mathml = `
|
||||
<root>
|
||||
<math xmlns = "http://www.w3.org/1998/Math/MathML">
|
||||
<mtext mathvariant="bold-fraktur">Creepy</mtext>
|
||||
</math>
|
||||
</root>
|
||||
`;
|
||||
|
||||
const result = MathMLToLaTeX.convert(mathml);
|
||||
|
||||
expect(result).toBe('\\mathfrak{Creepy}');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user