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

Method lex

src/Lexer.ts:72–75  ·  view source on GitHub ↗

* Static Lex Method

(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>)

Source from the content-addressed store, hash-verified

70 * Static Lex Method
71 */
72 static lex<ParserOutput = string, RendererOutput = string>(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>) {
73 const lexer = new _Lexer<ParserOutput, RendererOutput>(options);
74 return lexer.lex(src);
75 }
76
77 /**
78 * Static Lex Inline Method

Callers 4

marked.tsFile · 0.80
expectTokensFunction · 0.80
Lexer.test.jsFile · 0.80
lexerMethod · 0.80

Calls 2

blockTokensMethod · 0.95
inlineTokensMethod · 0.95

Tested by 1

expectTokensFunction · 0.64