markdown/marpit_plugin

(require("markdown/marpit_plugin"))(plugin) → {function}

Marpit plugin wrapper.

Convert passed markdown-it plugin to Marpit plugin. Marpit plugin would require that markdown-it instance has marpit member.

Source:
Parameters:
Name Type Description
plugin function

Base plugin for markdown-it.

Returns:
Type:
function

markdown-it plugin for Marpit.