Comark is a fast, streaming-ready markdown parser and renderer with component support for React, Svelte, Vue, HTML and ANSI terminal.
Parse content as it arrives. Perfect for AI-generated content and progressive loading.
Learn moreFirst-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>
)
}Incomplete markdown syntax is automatically closed during streaming, so content renders correctly at every frame.
Learn moreExtend Comark with plugins for math formulas, syntax highlighting, and more.
LaTeX math formulas with KaTeX. Inline $...$ and display $$...$$ syntax.
Browse all pluginsThe area of a circle is A=πr2.
Euler's identity: