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

Function initNode

static/katex/katex.mjs:967–986  ·  view source on GitHub ↗
(classes, options, style)

Source from the content-addressed store, hash-verified

965};
966
967const initNode = function initNode(classes, options, style) {
968 this.classes = classes || [];
969 this.attributes = {};
970 this.height = 0;
971 this.depth = 0;
972 this.maxFontSize = 0;
973 this.style = style || {};
974
975 if (options) {
976 if (options.style.isTight()) {
977 this.classes.push("mtight");
978 }
979
980 const color = options.getColor();
981
982 if (color) {
983 this.style.color = color;
984 }
985 }
986};
987/**
988 * Convert into an HTML node
989 */

Callers

nothing calls this directly

Calls 2

isTightMethod · 0.80
getColorMethod · 0.80

Tested by

no test coverage detected