Methods

(inner) slide(md, optsopt)

Marpit slide plugin.

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

Parameters:
NameTypeAttributesDescription
mdMarkdownIt

markdown-it instance.

optsObject<optional>
Properties
NameTypeAttributesDefaultDescription
attributesObject<optional>

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

anchorboolean | 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.