Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

343 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version

MDX Svelte

A Preprocessor for Svelte that allows writing Svelte code inside Markdown files; Similar to MDX for JSX.

Important

The latest version of this package is not compatible with Svelte 4. Please use the version 3.8.0 for Svelte 4 compatibility.

Example (+page.md)

---
title: Hello, World!
---

<script>
    import Markdown from "./Markdown.md"
    import Component from "./Component.svelte"
</script>

The title of this page is {frontmatter.title}!

<Markdown />
<Component />

Contributions

Awesome, jump in and help however you can! Open issues, submit PRs, improve docs - no worries about not knowing it all, we're all learning.

About

Write Svelte code in Markdown files!

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages