Skip to content

@comfit/markdown-it / default

Function: default()

default(md, options?): void

Defined in: index.ts:48

Highlight fenced code blocks while preserving markdown-it's language classes and token attributes.

Inline code, indented code, and unlabelled fences without a default language are unchanged. Unknown languages use the previous fence renderer unless configured as errors. Calls on the same Node worker share a synchronous highlighting engine.

Parameters

md

MarkdownIt

options?

Options = {}

Returns

void