A fast, streaming-ready markdown parser with component support for Vue and React.
Parse content as it arrives. Perfect for AI-generated content and progressive loading.
Learn moreFirst-class support for both frameworks. Embed custom components in your markdown.
<script setup lang="ts">
import { Comark } from 'comark/vue'
import Alert from './components/Alert.vue'
const md = `
# Hello **World**
::alert{type="info"}
This is a Comark component!
::
`
</script>
<template>
<Suspense>
<Comark :components="{ Alert }">
{{ md }}
</Comark>
</Suspense>
</template>Incomplete markdown syntax is automatically closed during streaming, so content renders correctly at every frame.
Learn moreExtend Comark with plugins for math formulas, CJK text, syntax highlighting, and more.
LaTeX math formulas with KaTeX. Inline $...$ and display $$...$$ syntax.
Browse all pluginsThe area of a circle is .
Euler's identity: