Markdown-it is a high-performance and highly extensible Markdown parser, currently at version 14.1.1. It strictly follows the CommonMark specification while also offering several useful syntax extensions like URL autolinking, smart typography (typographer), and HTML tag support. Known for its speed and configurability, users can easily add, modify, or replace parsing rules and extend functionality via a rich ecosystem of community-developed plugins available on npm. It prioritizes safety by design and is suitable for both Node.js and browser environments. The project maintains an active development pace with frequent updates, ensuring ongoing compatibility and feature enhancements.
npm install markdown-itVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic markdown-it initialization with common options, renders a block of Markdown text, and shows inline rendering for single-line content.
Access the global instance using `window.markdownit`.
Explicitly initialize with a preset (e.g., `markdownit('default')`) or configure options to match previous behavior after consulting the changelog for your specific upgrade path.Only use well-vetted and trusted plugins from reliable sources. When in doubt, audit plugin code or sanitize the output further if it contains user-generated content after parsing.
Thoroughly test custom rule sets with diverse Markdown inputs. Consult the 'Development info' documentation on the GitHub repository for guidance on rule management and plugin development.
Use `import markdownit from 'markdown-it'` for ESM or `const markdownit = require('markdown-it')` for CommonJS.Ensure you are referencing `window.markdownit()` when using the UMD build directly in the browser.
Verify plugin registration (`md.use(plugin)`). Check rule names for typos. Adjust rule insertion methods (`.before()`, `.after()`, `.at()`) and priorities to ensure correct execution order.
No dependency data recorded yet.