MCPcopy
hub / github.com/markedjs/marked / escape

Method escape

src/Tokenizer.ts:619–628  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

617 }
618
619 escape(src: string): Tokens.Escape | undefined {
620 const cap = this.rules.inline.escape.exec(src);
621 if (cap) {
622 return {
623 type: 'escape',
624 raw: cap[0],
625 text: cap[1],
626 };
627 }
628 }
629
630 tag(src: string): Tokens.Tag | undefined {
631 const cap = this.rules.inline.tag.exec(src);

Callers 1

inlineTokensMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected