mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-18 09: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:
@@ -782,6 +782,7 @@ const makeLeftRightDelim = function(
|
||||
export default {
|
||||
sqrtImage: makeSqrtImage,
|
||||
sizedDelim: makeSizedDelim,
|
||||
sizeToMaxHeight: sizeToMaxHeight,
|
||||
customSizedDelim: makeCustomSizedDelim,
|
||||
leftRightDelim: makeLeftRightDelim,
|
||||
};
|
||||
|
@@ -124,6 +124,10 @@ defineFunction({
|
||||
node.setAttribute("fence", "false");
|
||||
}
|
||||
|
||||
node.setAttribute("stretchy", "true");
|
||||
node.setAttribute("minsize", delimiter.sizeToMaxHeight[group.size] + "em");
|
||||
node.setAttribute("maxsize", delimiter.sizeToMaxHeight[group.size] + "em");
|
||||
|
||||
return node;
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user