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

Function defineSymbol

static/katex/katex.mjs:3853–3863  ·  view source on GitHub ↗

`acceptUnicodeChar = true` is only applicable if `replace` is set.

(mode, font, group, replace, name, acceptUnicodeChar)

Source from the content-addressed store, hash-verified

3851/** `acceptUnicodeChar = true` is only applicable if `replace` is set. */
3852
3853function defineSymbol(mode, font, group, replace, name, acceptUnicodeChar) {
3854 symbols[mode][name] = {
3855 font,
3856 group,
3857 replace
3858 };
3859
3860 if (acceptUnicodeChar && replace) {
3861 symbols[mode][replace] = symbols[mode][name];
3862 }
3863} // Some abbreviations for commonly used strings.
3864// This helps minify the code, and also spotting typos using jshint.
3865// modes:
3866

Callers 1

katex.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected