mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
fix: \mathinner MathML when invoked as a denominator. (#3501)
* fix: \mathinner * Write a better test for \mathinner Fixes #3500
This commit is contained in:
@@ -101,6 +101,19 @@ describe("A rel parser", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("A mathinner parser", function() {
|
||||
it("should not fail", function() {
|
||||
expect("\\mathinner{\\langle{\\psi}\\rangle}").toParse();
|
||||
expect("\\frac 1 {\\mathinner{\\langle{\\psi}\\rangle}}").toParse();
|
||||
});
|
||||
|
||||
it("should return one group, not a fragment", function() {
|
||||
const contents = "\\mathinner{\\langle{\\psi}\\rangle}";
|
||||
const mml = buildMathML(getParsed(contents), contents, defaultOptions);
|
||||
expect(mml.children.length).toEqual(1);
|
||||
});
|
||||
});
|
||||
|
||||
describe("A punct parser", function() {
|
||||
const expression = ",;";
|
||||
|
||||
|
Reference in New Issue
Block a user