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

Function mathchoice_chooseMathStyle

static/katex/katex.js:11195–11212  ·  view source on GitHub ↗
(group, options)

Source from the content-addressed store, hash-verified

11193
11194
11195var mathchoice_chooseMathStyle = function chooseMathStyle(group, options) {
11196 switch (options.style.size) {
11197 case src_Style.DISPLAY.size:
11198 return group.display;
11199
11200 case src_Style.TEXT.size:
11201 return group.text;
11202
11203 case src_Style.SCRIPT.size:
11204 return group.script;
11205
11206 case src_Style.SCRIPTSCRIPT.size:
11207 return group.scriptscript;
11208
11209 default:
11210 return group.text;
11211 }
11212};
11213
11214defineFunction({
11215 type: "mathchoice",

Callers 1

katex.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected