UNPKG

@diplodoc/transform

Version:

A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML

18 lines (12 loc) 431 B
import type {PluginWithOptions} from 'markdown-it'; import type {CheckboxOptions} from './checkbox'; import {checkboxReplace} from './checkbox'; /** * Checkbox plugin for markdown-it. * Forked from https://github.com/mcecot/markdown-it-checkbox */ const checkbox: PluginWithOptions<CheckboxOptions> = (md, options) => { md.core.ruler.push('checkbox', checkboxReplace(md, options)); return md; }; export = checkbox;