plugin

(require("plugin"))(plugin) → {function}

Create Marpit plugin.

Generate Marpit plugin from passed markdown-it plugin. Marpit plugin needs markdown-it instance with marpit member.

Source:
Parameters:
Name Type Description
plugin function

Base plugin for markdown-it.

Returns:
Type:
function

Generated Marpit plugin.