MCPcopy Create free account
hub / github.com/TruthHun/BookStack / makeLineSpan

Function makeLineSpan

static/katex/katex.mjs:5599–5605  ·  view source on GitHub ↗
(className, options, thickness)

Source from the content-addressed store, hash-verified

5597const makeSvgSpan = (classes, children, options, style) => new Span(classes, children, options, style);
5598
5599const makeLineSpan = function makeLineSpan(className, options, thickness) {
5600 const line = makeSpan([className], [], options);
5601 line.height = thickness || options.fontMetrics().defaultRuleThickness;
5602 line.style.borderBottomWidth = line.height + "em";
5603 line.maxFontSize = 1.0;
5604 return line;
5605};
5606/**
5607 * Makes an anchor with the given href, list of classes, list of children,
5608 * and options.

Callers

nothing calls this directly

Calls 2

makeSpanFunction · 0.85
fontMetricsMethod · 0.80

Tested by

no test coverage detected