markdown/sweep

Source: sweep.js:2


Instance Methods

sweep(md: MarkdownIt)

Marpit sweep plugin.

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

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

Parameters

  • md (MarkdownIt) — markdown-it instance.