Support MathML display mode (#2220)

This commit is contained in:
Ron Kok
2020-03-23 10:28:43 -07:00
committed by GitHub
parent 284ccc602a
commit 69a22d3cfb
4 changed files with 15 additions and 5 deletions

View File

@@ -20,7 +20,8 @@ const getMathML = function(expr, settings = new Settings()) {
maxSize: Infinity,
});
const built = buildMathML(parseTree(expr, settings), expr, options);
const built = buildMathML(parseTree(expr, settings), expr, options,
settings.displayMode);
// Strip off the surrounding <span>
return built.children[0].toMarkup();