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

Function isCharacterBox

static/katex/katex.mjs:226–230  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

224
225
226const isCharacterBox = function isCharacterBox(group) {
227 const baseElem = getBaseElem(group); // These are all they types of groups which hold single characters
228
229 return baseElem.type === "mathord" || baseElem.type === "textord" || baseElem.type === "atom";
230};
231
232const assert = function assert(value) {
233 if (!value) {

Callers

nothing calls this directly

Calls 1

getBaseElemFunction · 0.70

Tested by

no test coverage detected