helpers/plugin

(require("helpers/plugin"))(md, callback)

Enhance markdown-it plugin system to support Marpit.

Source:
Parameters:
Name Type Description
md MarkdownIt

markdown-it instance.

callback function

Callback function. markdown-it rules extended within the callback will check the state of Marpit features toggled by StateCore#marpit.