---
title: "Svelte"
description: "A minimal example showing how to use Comark with Svelte and Vite."
canonical_url: "https://comark.dev/examples/vite/svelte"
---
# Svelte

> A minimal example showing how to use Comark with Svelte and Vite.

<code-explorer org="comarkdown" repo="comark@81a416b278b0f304d7e7577c7ac6bbfc78414790" path="examples/2.vite/svelte" defaultValue="src/App.svelte"></code-explorer>

<browser src="https://comark-svelte.vercel.app"></browser>

This example shows the quickest way to use Comark with Svelte - use the `Markdown` component and pass it markdown content. The component handles parsing and rendering automatically using Svelte 5's `$state` and `$effect` runes.


## Sitemap

See the full [sitemap](https://comark.dev/sitemap.md) for all pages.
