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

Function checkDelimiter

static/katex/katex.js:8800–8808  ·  view source on GitHub ↗
(delim, context)

Source from the content-addressed store, hash-verified

8798
8799// Delimiter functions
8800function checkDelimiter(delim, context) {
8801 var symDelim = checkSymbolNodeType(delim);
8802
8803 if (symDelim && utils.contains(delimiters, symDelim.text)) {
8804 return symDelim;
8805 } else {
8806 throw new src_ParseError("Invalid delimiter: '" + (symDelim ? symDelim.text : JSON.stringify(delim)) + "' after '" + context.funcName + "'", delim);
8807 }
8808}
8809
8810defineFunction({
8811 type: "delimsizing",

Callers 1

katex.jsFile · 0.70

Calls 1

checkSymbolNodeTypeFunction · 0.70

Tested by

no test coverage detected