Repo of the Day
pngwn/MDsveX
Published: Dec 4, 2026
Open repository ↗A markdown preprocessor for Svelte
Summary
MDsveX is a Markdown preprocessor for Svelte, allowing engineers to work with Markdown content inside Svelte projects. This TypeScript repository is a monorepo containing the compiler and Vite plugin, separate Markdown parser and renderer packages, migration tooling, first-party plugins, language tools, and a documentation site with a playground.
What it is useful for
Use MDsveX when a Svelte application needs Markdown-based content rather than only .svelte components. The repository provides several pieces that can fit different parts of that workflow:
- The
mdsvexpackage contains the compiler and Vite plugin. @mdsvex/parseprovides the Markdown parser. Its supported Markdown syntax is described in the repository’sPFM.mdfile.@mdsvex/renderprovides the renderer.@mdsvex/migrateis intended specifically for projects moving from mdsvex 0.x.- The
pluginsdirectory contains first-party packages published under the@mdsvex/plugin-*naming convention. - The
language-toolsarea includes a language server, a TypeScript plugin, and a VS Code extension. - The documentation site includes a playground that can be used to explore the format without first setting up a full project.
The monorepo also uses Changesets for changelogs and versioning. Contributors must normally include a changeset with pull requests, except for changes limited to the documentation website.
How engineers can use it
For a new Svelte project, an engineer would normally start with the mdsvex package because it provides the compiler and Vite plugin, then consult its package documentation for installation and configuration. Teams that need custom Markdown behavior can evaluate the parser, renderer, or first-party plugin packages separately.
Projects created with mdsvex 0.x can use @mdsvex/migrate rather than changing their setup manually. Engineers who want editor support can inspect the language server, TypeScript plugin, or VS Code extension in the language-tools directory.
The supplied README does not document installation commands, configuration examples, supported framework versions, or a complete setup procedure. Exact setup instructions are therefore unclear from the root README; readers should follow the relevant package README or the documentation site before adding MDsveX to production work.