Methods

(inner) apply(md, optsopt)

Apply parsed Marpit directives to markdown-it tokens.

Parameters:
NameTypeAttributesDescription
mdMarkdownIt

markdown-it instance.

optsObject<optional>
Properties
NameTypeAttributesDefaultDescription
datasetboolean<optional>
true

Assigns directives as HTML data attributes of each section tag.

cssboolean<optional>
true

Assigns directives as CSS Custom Properties of each section tag.