markdown/sweep

(require("markdown/sweep"))(md)

Marpit sweep plugin.

Hide blank paragraphs. For better support of the background image syntax and directives through HTML comment, Marpit will sweep paragraphs included only whitespace by setting hidden: true.

It also sweep the inline token marked as hidden forcely. Please notice that plugins executed after this cannot handle hidden inline tokens.

Source:
Parameters:
Name Type Description
md MarkdownIt

markdown-it instance.