Comark

A fast, streaming-ready markdown parser with component support for Vue and React.

comark — streaming
Open in playground
source.md
rendered output

Real-time streaming

Parse content as it arrives. Perfect for AI-generated content and progressive loading.

Learn more

Vue & React

First-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>

Auto-close

Incomplete markdown syntax is automatically closed during streaming, so content renders correctly at every frame.

Learn more
Bold
source
rendered output

Extensible plugins

Extend Comark with plugins for math formulas, CJK text, syntax highlighting, and more.

LaTeX math formulas with KaTeX. Inline $...$ and display $$...$$ syntax.

Browse all plugins
source
rendered output

The area of a circle is A=πr2A = \pi r^2.

Euler's identity:

eiπ+1=0e^{i\pi} + 1 = 0

Start writing

Add rich, interactive components to your markdown today.

Copyright © 2026