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

Function chooseMathStyle

static/katex/katex.mjs:11012–11029  ·  view source on GitHub ↗
(group, options)

Source from the content-addressed store, hash-verified

11010});
11011
11012const chooseMathStyle = (group, options) => {
11013 switch (options.style.size) {
11014 case Style$1.DISPLAY.size:
11015 return group.display;
11016
11017 case Style$1.TEXT.size:
11018 return group.text;
11019
11020 case Style$1.SCRIPT.size:
11021 return group.script;
11022
11023 case Style$1.SCRIPTSCRIPT.size:
11024 return group.scriptscript;
11025
11026 default:
11027 return group.text;
11028 }
11029};
11030
11031defineFunction({
11032 type: "mathchoice",

Callers 1

katex.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected