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

Method setOptions

src/Instance.ts:262–265  ·  view source on GitHub ↗
(opt: MarkedOptions<ParserOutput, RendererOutput>)

Source from the content-addressed store, hash-verified

260 }
261
262 setOptions(opt: MarkedOptions<ParserOutput, RendererOutput>) {
263 this.defaults = { ...this.defaults, ...opt };
264 return this;
265 }
266
267 lexer(src: string, options?: MarkedOptions<ParserOutput, RendererOutput>) {
268 return _Lexer.lex(src, options ?? this.defaults);

Callers 4

runBenchFunction · 0.80
marked.tsFile · 0.80
instance.test.jsFile · 0.80
marked.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected