markdown/slide

(require("markdown/slide"))(md, optsopt)

Marpit slide plugin.

Split markdown-it tokens into the slides by horizontal rule. Each slides will be wrapped by section element.

Source:
Parameters:
Name Type Attributes Description
md MarkdownIt

markdown-it instance.

opts Object <optional>
Name Type Attributes Default Description
attributes Object <optional>

The <section> element attributes by key-value pairs.

anchor boolean | Marpit~AnchorCallback <optional>
true

If true, assign the anchor with the page number starting from 1. You can customize anchor name by passing callback function.