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

Function makeLargeDelim

static/katex/katex.mjs:8047–8056  ·  view source on GitHub ↗
(delim, size, center, options, mode, classes)

Source from the content-addressed store, hash-verified

8045
8046
8047const makeLargeDelim = function makeLargeDelim(delim, size, center, options, mode, classes) {
8048 const inner = mathrmSize(delim, size, mode, options);
8049 const span = styleWrap(buildCommon.makeSpan(["delimsizing", "size" + size], [inner], options), Style$1.TEXT, options, classes);
8050
8051 if (center) {
8052 centerSpan(span, options, Style$1.TEXT);
8053 }
8054
8055 return span;
8056};
8057/**
8058 * Make an inner span with the given offset and in the given font. This is used
8059 * in `makeStackedDelim` to make the stacking pieces for the delimiter.

Callers 2

makeSizedDelimFunction · 0.85
makeCustomSizedDelimFunction · 0.85

Calls 3

mathrmSizeFunction · 0.85
styleWrapFunction · 0.85
centerSpanFunction · 0.70

Tested by

no test coverage detected