# mdsvex

Markdown preprocessor for Svelte that lets Svelte components and Markdown be written in the same document.


Source: https://findsoftware.frbit.cloud/mdsvex/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://mdsvex.pngwn.at/
- repository: https://github.com/pngwn/MDsveX
- docs: https://mdsvex.pngwn.at/docs

### Identity

- status: active
- maintainer: pngwn
- maintainerType: individual
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: svelte

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: svelte
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-07-19

### Adoption

- githubStargazers: 3076
- packagistDownloads: not applicable
- npmWeeklyDownloads: 312014
- contributors: 48
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 992
- dependentPackages: 256

### Sources

- urls: https://mdsvex.pngwn.at/ (read 2026-11-16)
- urls: https://api.github.com/repos/pngwn/MDsveX (read 2026-11-16)
- urls: https://mdsvex.pngwn.at/docs (read 2026-11-16)
- maintainer: https://github.com/pngwn/MDsveX/blob/main/LICENSE (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/mdsvex (read 2026-11-16)
- category: https://github.com/pngwn/MDsveX/blob/main/README.md (read 2026-11-16)
- basedOn: https://mdsvex.pngwn.at/docs (read 2026-11-16)
- language: https://api.github.com/repos/pngwn/MDsveX (read 2026-11-16)
- templating: https://mdsvex.pngwn.at/docs (read 2026-11-16)
- installMethod: https://mdsvex.pngwn.at/docs (read 2026-11-16)
- license: https://github.com/pngwn/MDsveX/blob/main/LICENSE (read 2026-11-16)
- licenseModel: https://github.com/pngwn/MDsveX/blob/main/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/pngwn/MDsveX/releases (read 2026-11-16)
- latestReleaseDate: https://registry.npmjs.org/mdsvex (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/mdsvex (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/pngwn/MDsveX (read 2026-11-16)
- contributors: https://api.github.com/repos/pngwn/MDsveX/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/mdsvex (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/mdsvex (read 2026-11-16)

## Notes

mdsvex brings Markdown into Svelte projects. It is added as a preprocessor to a Svelte build with rollup or webpack, which then passes `.svx` files through it, or its compile function turns a document into Svelte code without hooking into the Svelte compiler. The docs say it supports all Svelte syntax and almost all Markdown syntax, so a Markdown document can import and use Svelte components. Parsing runs on unified, remark and rehype, and remark and rehype plugins can be passed in as options.

The repository is a monorepo that also holds packages for working with Svelte syntax trees.

## Worth knowing

A code block indented by four spaces does nothing in mdsvex, since indentation is common in XML-based languages.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
