Markdown + Components

Comark is a fast, streaming-ready markdown parser and renderer with component support for React, Svelte, Vue, HTML and ANSI terminal.

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

React, Svelte & Vue

First-class support for all major frameworks. Embed custom components in your markdown.

import { Comark } from 'comark/react'
import { Alert } from './components/Alert'

const markdown = `
# Hello **World**

::alert{type="info"}
This is a Comark component!
::
`

export default function App() {
  return (
    <Comark components={{ Alert }}>
      {markdown}
    </Comark>
  )
}

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, 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=πr2.

Euler's identity:

e+1=0

Start writing

Add rich, interactive components to your markdown today.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.