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

Function wrapFragment

static/katex/katex.mjs:5633–5639  ·  view source on GitHub ↗
(group, options)

Source from the content-addressed store, hash-verified

5631
5632
5633const wrapFragment = function wrapFragment(group, options) {
5634 if (group instanceof DocumentFragment) {
5635 return makeSpan([], [group], options);
5636 }
5637
5638 return group;
5639}; // These are exact object types to catch typos in the names of the optional fields.
5640
5641
5642// Computes the updated `children` list and the overall depth.

Callers

nothing calls this directly

Calls 1

makeSpanFunction · 0.85

Tested by

no test coverage detected