MCPcopy Index your code
hub / github.com/TruthHun/BookStack / buildHTML_buildGroup

Function buildHTML_buildGroup

static/katex/katex.js:6499–6520  ·  view source on GitHub ↗
(group, options, baseOptions)

Source from the content-addressed store, hash-verified

6497 */
6498
6499var buildHTML_buildGroup = function buildGroup(group, options, baseOptions) {
6500 if (!group) {
6501 return buildHTML_makeSpan();
6502 }
6503
6504 if (_htmlGroupBuilders[group.type]) {
6505 // Call the groupBuilders function
6506 var groupNode = _htmlGroupBuilders[group.type](group, options); // If the size changed between the parent and the current group, account
6507 // for that size difference.
6508
6509 if (baseOptions && options.size !== baseOptions.size) {
6510 groupNode = buildHTML_makeSpan(options.sizingClasses(baseOptions), [groupNode], options);
6511 var multiplier = options.sizeMultiplier / baseOptions.sizeMultiplier;
6512 groupNode.height *= multiplier;
6513 groupNode.depth *= multiplier;
6514 }
6515
6516 return groupNode;
6517 } else {
6518 throw new src_ParseError("Got group of unknown type: '" + group.type + "'");
6519 }
6520};
6521/**
6522 * Combine an array of HTML DOM nodes (e.g., the output of `buildExpression`)
6523 * into an unbreakable HTML node of class .base, with proper struts to

Callers 9

accent_htmlBuilderFunction · 0.85
katex.jsFile · 0.85
enclose_htmlBuilderFunction · 0.85
array_htmlBuilderFunction · 0.85
font_htmlBuilderFunction · 0.85
genfrac_htmlBuilderFunction · 0.85
horizBrace_htmlBuilderFunction · 0.85
op_htmlBuilderFunction · 0.85

Calls 1

sizingClassesMethod · 0.80

Tested by

no test coverage detected