Spaces:
Sleeping
Sleeping
File size: 641 Bytes
9d1374f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import {defineFunctionBuilders} from "../defineFunction";
import {makeFragment, makeSpan} from "../buildCommon";
import * as html from "../buildHTML";
import * as mml from "../buildMathML";
defineFunctionBuilders({
type: "ordgroup",
htmlBuilder(group, options) {
if (group.semisimple) {
return makeFragment(
html.buildExpression(group.body, options, false));
}
return makeSpan(
["mord"], html.buildExpression(group.body, options, true), options);
},
mathmlBuilder(group, options) {
return mml.buildExpressionRow(group.body, options, true);
},
});
|