markdown/comment

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

Marpit comment plugin.

Parse HTML comment as token. Comments will strip regardless of html setting provided by markdown-it.

Source:
Parameters:
Name Type Attributes Description
md MarkdownIt

markdown-it instance.

opts Object <optional>
Name Type Attributes Default Description
looseYAML boolean <optional>
false

Allow loose YAML for directives.