MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / constructor

Method constructor

web/marked.min.js:1204–1221  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1202 tokenizer;
1203 inlineQueue;
1204 constructor(e) {
1205 ((this.tokens = []),
1206 (this.tokens.links = Object.create(null)),
1207 (this.options = e || w),
1208 (this.options.tokenizer = this.options.tokenizer || new S()),
1209 (this.tokenizer = this.options.tokenizer),
1210 (this.tokenizer.options = this.options),
1211 (this.tokenizer.lexer = this),
1212 (this.inlineQueue = []),
1213 (this.state = { inLink: !1, inRawBlock: !1, top: !0 }));
1214 let t = { other: m, block: B.normal, inline: P.normal };
1215 (this.options.pedantic
1216 ? ((t.block = B.pedantic), (t.inline = P.pedantic))
1217 : this.options.gfm &&
1218 ((t.block = B.gfm),
1219 this.options.breaks ? (t.inline = P.breaks) : (t.inline = P.gfm)),
1220 (this.tokenizer.rules = t));
1221 }
1222 static get rules() {
1223 return { block: B, inline: P };
1224 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected