A configurable wrapper around markdown-it that simplifies processing Markdown to HTML with presets, options, plugins, and post-processing. Version 0.1.0 (stable) provides a single class-based API for configuring markdown-it, including preset selection, options, plugin arrays, a configure callback for custom plugins, and a format function for post-processing HTML and frontmatter attributes. Unlike raw markdown-it usage, this compiler centralises setup and adds structured output with attributes, TOC, body, and HTML. No recent updates; release cadence is unknown.
npm install markdown-it-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full usage: import types, create config with options/plugins/configure/format, compile markdown, and access html output.
Use `import { MarkdownItCompiler } from 'markdown-it-compiler'`.Pass a single object with `preset`, `options`, `plugins`, `configure`, `format` keys.
Install required plugins explicitly, e.g., `yarn add markdown-it-anchor`.
Access `content.html` for compiled output; the original markdown is the input string.
Change to `import { MarkdownItCompiler } from 'markdown-it-compiler'`.Run `yarn add markdown-it-abbr` or install the plugin package.
Ensure correct instantiation: `const compiler = new MarkdownItCompiler({...})` and config is an object.