# pngwn/MDsveX

A markdown preprocessor for Svelte.

Repository: https://github.com/pngwn/MDsveX
Canonical: https://ross.abutalabs.com/products/mdsvex
Homepage: https://mdsvex.pngwn.io
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-07-25T08:22:54+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 93, longevity 100
- inputs: {"age_days": 2793, "days_push": 39, "days_rel": 45, "gap_med": 16, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3048, forks 127 (observed 2026-08-28T04:07:39.557339+00:00)

## What it is
mdsvex is a Markdown preprocessor for Svelte, essentially MDX for Svelte. It lets you use Svelte components inside Markdown files and Markdown inside Svelte components, with support for remark/rehype plugins, syntax highlighting, frontmatter, and custom layouts.

## Use cases
- write blog posts in markdown with embedded svelte components
- use MDX-style documents in a sveltekit site
- add frontmatter and custom layouts to markdown content
- apply remark and rehype plugins to markdown in svelte projects
- render interactive charts inside markdown documents
- compile markdown files to svelte components

## When to choose
- you build content-driven sites with Svelte or SvelteKit and want MDX-like authoring
- you need to mix interactive Svelte components into Markdown documents
- you want remark/rehype ecosystem compatibility in a Svelte project

## When to avoid
- you use React, Vue, or another framework instead of Svelte
- you only need plain Markdown rendering without component embedding
- you need a full static site generator rather than a build-time preprocessor

## Facets
- artifact type: library
- maturity: active
- function: parser, templating, markdown
- domain: web-development, frontend, documentation, developer-tools
- platform: -
- tags: svelte, mdx, preprocessor, remark, rehype, unified, nodejs, javascript

## Member repositories
- pngwn/MDsveX (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.557339+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:28:55.671573+00:00, confidence not recorded.
  - readme: https://github.com/pngwn/MDsveX (fetched 2026-08-28T04:07:39.557339+00:00, sha a60d13f661a5)
  - homepage: https://mdsvex.pngwn.io (fetched 2026-08-29T09:44:22.465926+00:00, sha 4732b99c4e48)
  - site_page: https://mdsvex.pngwn.io/docs (fetched 2026-08-29T09:44:22.468631+00:00, sha dc615bd8dc92)
  - registry_npm: https://registry.npmjs.org/mdsvex (fetched 2026-08-29T09:44:22.471473+00:00, sha 1dc90087925b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
