MCPcopy
hub / github.com/KaTeX/KaTeX / makeSpan

Function makeSpan

src/buildCommon.ts:355–366  ·  view source on GitHub ↗
(
    classes?: string[],
    children?: HtmlDomNode[],
    options?: Options,
    style?: CssStyle,
)

Source from the content-addressed store, hash-verified

353 * should if present come first in `classes`.
354 */
355export const makeSpan = function(
356 classes?: string[],
357 children?: HtmlDomNode[],
358 options?: Options,
359 style?: CssStyle,
360): DomSpan {
361 const span = new Span(classes, children, options, style);
362
363 sizeElementFromChildren(span);
364
365 return span;
366};
367
368// SVG one is simpler -- doesn't require height, depth, max-font setting.
369// This is also a separate method for typesafety.

Callers 15

renderErrorFunction · 0.90
buildSvgSpan_Function · 0.90
stretchyEncloseFunction · 0.90
buildExpressionFunction · 0.90
traverseNonSpaceNodesFunction · 0.90
makeNullDelimiterFunction · 0.90
buildGroupFunction · 0.90
buildHTMLUnbreakableFunction · 0.90
buildHTMLFunction · 0.90
displayWrapFunction · 0.90
buildTreeFunction · 0.90
buildHTMLTreeFunction · 0.90

Calls 1

sizeElementFromChildrenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…