Svelte markdoc preprocess
Bring the power of Markdoc right into your Svelte applications!
Bring the power of Markdoc right into your Svelte applications! The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2023. Key topics include: markdoc, svelte.
Latest release: 3.0.0
March 31, 2025View Changelog →
<br/>
<p align="center">
<h3 align="center">svelte-markdoc-preprocess</h3>
<p align="center">
Bring the power of Markdoc right into your Svelte applications!
<br/>
<br/>
<a href="https://svelte-markdoc-preprocess.pages.dev/"><strong>Explore the docs »</strong></a>
<br/>
<br/>
</p>
</p>
Table Of Contents
Getting Started
Installation
- Install the package:
shnpm i -D svelte-markdoc-preprocess
- Add the preprocessor and new extensions to your svelte.config.js:
jsimport { markdoc } from 'svelte-markdoc-preprocess'; const config = { preprocess: [vitePreprocess(), markdoc()], extensions: ['.markdoc', '.svelte'], };
- Use it
md<!-- +page.markdoc --> # I am a heading I am a paragraph with **bold** words. But you can also use Svelte Components:
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the Code Of Conduct before posting your first idea as well.
Creating A Pull Request
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contributors
Showing top 4 contributors by commit count.
This article is auto-generated from TorstenDittmann/svelte-markdoc-preprocess via the GitHub API.Last fetched: 6/28/2026
