Remarkable is a fast, extensible Markdown parser for JavaScript, offering 100% CommonMark specification support, alongside syntax extensions and typographer features. Currently at version 2.0.1, the library provides a robust solution for converting Markdown strings to HTML. Its key differentiators include high performance, a highly configurable parsing engine that allows adding or replacing syntax rules, and a vibrant community plugin ecosystem available via npm. Version 2.0.0 introduced significant changes, including a migration to ES module source code, rollup-based bundling for UMD, CJS, and ESM formats, and a shift to named exports for its public API. The project maintains an active development status, with updates focusing on stability and modern JavaScript practices.
npm install remarkableVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the Remarkable parser, including default rendering, applying the 'commonmark' preset, and configuring options via the constructor to enable features like HTML tags, line breaks, and typographer rules.
Change `import Remarkable from 'remarkable'` to `import { Remarkable } from 'remarkable'` for ESM, or `const { Remarkable } = require('remarkable');` for CommonJS.Rely solely on the public API of the `remarkable` package by importing directly from `remarkable`. Avoid accessing internal paths.
Migrate package management to npm or Yarn. Install Remarkable using `npm install remarkable` or `yarn add remarkable`.
Instead of `md.set({ /* options */ })`, create a new instance: `const mdConfigured = new Remarkable({ /* options */ });`.For ESM, use `import { Remarkable } from 'remarkable';`. For CommonJS, use `const { Remarkable } = require('remarkable');`.Only import directly from the main `remarkable` package (`import { Remarkable } from 'remarkable';`). Internal modules are not part of the public API.No dependency data recorded yet.