mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
feat: support MathML \big, \bigg, \Big, and \Bigg (#2332)
* Support MathML \big, \bigg, etc * Add stretchy attribute * Update mathml-spec.js.snap Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
@@ -65,6 +65,11 @@ describe("A MathML builder", function() {
|
||||
expect(getMathML("\\raisebox{0.25em}{b}")).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should size delimiters correctly', () => {
|
||||
expect(getMathML("(M) \\big(M\\big) \\Big(M\\Big) \\bigg(M\\bigg)" +
|
||||
" \\Bigg(M\\Bigg)")).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should use <menclose> for colorbox', () => {
|
||||
expect(getMathML("\\colorbox{red}{b}")).toMatchSnapshot();
|
||||
});
|
||||
|
Reference in New Issue
Block a user