mdsvex
Markdown with Svelte in it.
Write documents in markdown, put Svelte components and expressions anywhere in them, and get a Svelte component out.
Install the prereleasepnpm add -D mdsvex@next
Contents
- I Quick start Install it, then add it to Vite or SvelteKit.
- II Markdown PFM, and where it parts from CommonMark.
- III Svelte in markdown Expressions, components and blocks, anywhere.
- IV Frontmatter YAML, checked against the template’s props.
- V Templates A component that wraps the document.
- VI Custom components Replace any element with your own.
- VII Directives A name and its args, mapped to a component.
- VIII Plugins Act on the document as it is parsed.
- IX Formatting with Prettier Format markdown and Svelte together.