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

Function defineMacro

static/katex/katex.js:13338–13340  ·  view source on GitHub ↗
(name, body)

Source from the content-addressed store, hash-verified

13336/* harmony default export */ var macros = (builtinMacros); // This function might one day accept an additional argument and do more things.
13337
13338function defineMacro(name, body) {
13339 builtinMacros[name] = body;
13340} //////////////////////////////////////////////////////////////////////
13341// macro tools
13342// LaTeX's \@firstoftwo{#1}{#2} expands to #1, skipping #2
13343// TeX source: \long\def\@firstoftwo#1#2{#1}

Callers 1

katex.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected