MCPcopy Index your code
hub / github.com/TruthHun/BookStack / buildMathML_makeText

Function buildMathML_makeText

static/katex/katex.js:6890–6896  ·  view source on GitHub ↗
(text, mode, options)

Source from the content-addressed store, hash-verified

6888 * optional replacement from symbols.js.
6889 */
6890var buildMathML_makeText = function makeText(text, mode, options) {
6891 if (src_symbols[mode][text] && src_symbols[mode][text].replace && text.charCodeAt(0) !== 0xD835 && !(ligatures.hasOwnProperty(text) && options && (options.fontFamily && options.fontFamily.substr(4, 2) === "tt" || options.font && options.font.substr(4, 2) === "tt"))) {
6892 text = src_symbols[mode][text].replace;
6893 }
6894
6895 return new mathMLTree.TextNode(text);
6896};
6897/**
6898 * Wrap the given array of nodes in an <mrow> node if needed, i.e.,
6899 * unless the array has length 1. Always returns a single node.

Callers 3

accent_mathmlBuilderFunction · 0.85
katex.jsFile · 0.85
op_mathmlBuilderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected