Vite plugin for processing Markdown (.md) and MDX (.mdx) files using Sätteri. Version 0.2.7, active development. Integrates with Vite 5, 6, 7, or 8. Imports .md files as HTML strings with optional frontmatter exports, and .mdx files as JSX components. Supports GFM, frontmatter, math, and custom mdast/hast plugins. Unlike other MDX plugins, it relies on the Sätteri ecosystem and allows shared remark/rehype plugins across both Markdown and MDX pipelines.
npm install vite-plugin-satteriNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Vite with the plugin, imports a .md file for HTML and frontmatter, and imports an .mdx file as a component.
Pin specific version and review release notes.
Add the appropriate Vite plugin for your framework.
Use 'satteri({ mdx: { development: true } })' in config.Add a .d.ts file with module declarations for '*.md' and '*.mdx' as shown in the README.
Upgrade Vite to version 5 or higher.
Create a .d.ts file with module declarations as shown in README.
Install and configure a Vite plugin for your framework (e.g., @vitejs/plugin-react).
Use ESM imports (import) or set type: 'module' in package.json.