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

Method addSublanguage

packages/utils/renderer/highlight.js:201–204  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

199 '' !== e && this.add(e);
200 }
201 addSublanguage(e, n) {
202 const t = e.root;
203 (t.kind = n), (t.sublanguage = !0), this.add(t);
204 }
205 toHTML() {
206 return new l(this, this.options).value();
207 }

Callers 1

uFunction · 0.80

Calls 1

addMethod · 0.80

Tested by

no test coverage detected