Bring the power of Markdoc right into your Svelte applications!
Explore the docs »
npm i -D svelte-markdoc-preprocess
import { markdoc } from 'svelte-markdoc-preprocess';
const config = {
preprocess: [vitePreprocess(), markdoc()],
extensions: ['.markdoc', '.svelte'],
};
<!-- +page.markdoc -->
# I am a heading
I am a paragraph with **bold** words. But you can also use Svelte Components:
See the open issues for a list of proposed features (and known issues).
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.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)