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 = (md, options) => { md.core.ruler.push('checkbox', checkboxReplace(md, options)); return md; }; export = checkbox;