markdown/directives/apply

Source: apply.js:2


Instance Methods

apply(md: MarkdownIt, opts?: Object)

Apply parsed Marpit directives to markdown-it tokens.

Parameters

  • md (MarkdownIt) — markdown-it instance.
  • opts (Object, optional)
    • opts.dataset (boolean, optional, default: true) — Assigns directives as HTML data attributes of each section tag.
    • opts.css (boolean, optional, default: true) — Assigns directives as CSS Custom Properties of each section tag.