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

Function defineFunctionBuilders

static/katex/katex.js:6245–6261  ·  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

6243 */
6244
6245function defineFunctionBuilders(_ref2) {
6246 var type = _ref2.type,
6247 htmlBuilder = _ref2.htmlBuilder,
6248 mathmlBuilder = _ref2.mathmlBuilder;
6249 defineFunction({
6250 type: type,
6251 names: [],
6252 props: {
6253 numArgs: 0
6254 },
6255 handler: function handler() {
6256 throw new Error('Should never be called.');
6257 },
6258 htmlBuilder: htmlBuilder,
6259 mathmlBuilder: mathmlBuilder
6260 });
6261} // Since the corresponding buildHTML/buildMathML function expects a
6262// list of elements, we normalize for different kinds of arguments
6263
6264var defineFunction_ordargument = function ordargument(arg) {

Callers 1

katex.jsFile · 0.70

Calls 1

defineFunctionFunction · 0.70

Tested by

no test coverage detected