MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / defineSymbol

Function defineSymbol

katex/katex.js:4429–4439  ·  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

4427/** `acceptUnicodeChar = true` is only applicable if `replace` is set. */
4428
4429function defineSymbol(mode, font, group, replace, name, acceptUnicodeChar) {
4430 symbols[mode][name] = {
4431 font,
4432 group,
4433 replace
4434 };
4435
4436 if (acceptUnicodeChar && replace) {
4437 symbols[mode][replace] = symbols[mode][name];
4438 }
4439} // Some abbreviations for commonly used strings.
4440// This helps minify the code, and also spotting typos using jshint.
4441// modes:
4442

Callers 1

katex.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected