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

Function mathnormal

static/katex/katex.mjs:5380–5397  ·  view source on GitHub ↗
(value, mode, options, classes)

Source from the content-addressed store, hash-verified

5378
5379
5380const mathnormal = function mathnormal(value, mode, options, classes) {
5381 if (utils.contains(mathitLetters, value)) {
5382 return {
5383 fontName: "Main-Italic",
5384 fontClass: "mathit"
5385 };
5386 } else if (/[0-9]/.test(value.charAt(0))) {
5387 return {
5388 fontName: "Caligraphic-Regular",
5389 fontClass: "mathcal"
5390 };
5391 } else {
5392 return {
5393 fontName: "Math-Italic",
5394 fontClass: "mathdefault"
5395 };
5396 }
5397};
5398/**
5399 * Determines which of the two font names (Main-Bold and Math-BoldItalic) and
5400 * corresponding style tags (mathbf or boldsymbol) to use for font "boldsymbol",

Callers 1

makeOrdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected