MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / openNode

Method openNode

packages/utils/renderer/highlight.js:128–132  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

126 this.buffer += t(e);
127 }
128 openNode(e) {
129 if (!o(e)) return;
130 let n = e.kind;
131 e.sublanguage || (n = `${this.classPrefix}${n}`), this.span(n);
132 }
133 closeNode(e) {
134 o(e) && (this.buffer += s);
135 }

Callers 4

_walkMethod · 0.45
addKeywordMethod · 0.45
hFunction · 0.45
bFunction · 0.45

Calls 2

spanMethod · 0.95
oFunction · 0.70

Tested by

no test coverage detected