markdown/directives/apply

Methods

(inner) apply(md, optsopt)

Apply parsed Marpit directives to markdown-it tokens.

Source:
Parameters:
Name Type Attributes Description
md MarkdownIt

markdown-it instance.

opts Object <optional>
Name Type Attributes Default Description
dataset boolean <optional>
true

Assigns directives as HTML data attributes of each section tag.

css boolean <optional>
true

Assigns directives as CSS Custom Properties of each section tag.