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

Function defineSymbol

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

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

Callers 1

katex.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected