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

Function makeText

static/katex/katex.mjs:6817–6823  ·  view source on GitHub ↗
(text, mode, options)

Source from the content-addressed store, hash-verified

6815 * optional replacement from symbols.js.
6816 */
6817const makeText = function makeText(text, mode, options) {
6818 if (symbols[mode][text] && 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"))) {
6819 text = symbols[mode][text].replace;
6820 }
6821
6822 return new mathMLTree.TextNode(text);
6823};
6824/**
6825 * Wrap the given array of nodes in an <mrow> node if needed, i.e.,
6826 * unless the array has length 1. Always returns a single node.

Callers 3

mathmlBuilderFunction · 0.85
katex.mjsFile · 0.85
mathmlBuilder$8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected