A Rollup plugin for importing Markdown files as ES modules. Current stable version 1.0.1, last updated in 2018 with no recent releases. It uses the 'marked' library for Markdown parsing, converts .md files to HTML strings that can be imported in JavaScript/TypeScript. Key differentiator: minimal plugin for Rollup ecosystem, but lacks active maintenance.
npm install rollup-plugin-mdVerified import paths — ran on the pinned version, not inferred.
Shows rollup-plugin-md configuration in rollup.config.js and how to import a .md file.
Consider alternatives like @rollup/plugin-html or Vite's built-in markdown support.
Use only .md files or consider a different plugin.
Pin a compatible version of marked manually.
Use dynamic import or convert config to CommonJS if using old plugin.
Ensure rollup-plugin-md is added to the plugins array in rollup.config.js.
Use 'import md from 'rollup-plugin-md'' (default import), not named import.
Run 'npm install marked' or set 'marked: false' in plugin options.