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

Function defineFunctionBuilders

static/katex/katex.mjs:6209–6227  ·  view source on GitHub ↗

* Use this to register only the HTML and MathML builders for a function (e.g. * if the function's ParseNode is generated in Parser.js rather than via a * stand-alone handler provided to `defineFunction`).

(_ref2)

Source from the content-addressed store, hash-verified

6207 */
6208
6209function defineFunctionBuilders(_ref2) {
6210 let type = _ref2.type,
6211 htmlBuilder = _ref2.htmlBuilder,
6212 mathmlBuilder = _ref2.mathmlBuilder;
6213 defineFunction({
6214 type,
6215 names: [],
6216 props: {
6217 numArgs: 0
6218 },
6219
6220 handler() {
6221 throw new Error('Should never be called.');
6222 },
6223
6224 htmlBuilder,
6225 mathmlBuilder
6226 });
6227} // Since the corresponding buildHTML/buildMathML function expects a
6228// list of elements, we normalize for different kinds of arguments
6229
6230const ordargument = function ordargument(arg) {

Callers 1

katex.mjsFile · 0.70

Calls 1

defineFunctionFunction · 0.70

Tested by

no test coverage detected