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

Function defineMacro

static/katex/katex.mjs:13029–13031  ·  view source on GitHub ↗
(name, body)

Source from the content-addressed store, hash-verified

13027const builtinMacros = {};
13028
13029function defineMacro(name, body) {
13030 builtinMacros[name] = body;
13031} //////////////////////////////////////////////////////////////////////
13032// macro tools
13033// LaTeX's \@firstoftwo{#1}{#2} expands to #1, skipping #2
13034// TeX source: \long\def\@firstoftwo#1#2{#1}

Callers 1

katex.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected