Installation

Install Comark and choose a parser or renderer for HTML, ANSI, Vue, React, Svelte, or Angular to start working with Markdown in minutes.

Quick start

Choose the output you need and render your first Markdown document in minutes.

HTML

Server-side rendering and static generation without a framework.

Vue

Use Comark in Vue 3 applications with async component support and streaming.

Nuxt

Add @comark/vue to your Nuxt modules to auto-import the components and helpers.

React

Use Comark in React and Next.js applications.

Svelte

Use Comark in Svelte 5 applications with snippets and streaming.

Angular

Use Comark in Angular 21+ applications with standalone components and streaming.

ANSI

Render Comark as styled terminal output for CLIs and developer tools.

Agent skill

To give coding agents the Comark skill (syntax, AST, renderers, and streaming), install it from comark.dev:

Terminal
npx skills add https://comark.dev

IDE extension

Install the Comark extension in VS Code or Cursor for syntax highlighting, bracket matching, document folding, and autocomplete in .md files using Comark syntax.

Comark extension

Or within your editor, open Quick Open (Ctrl+P / Cmd+P) and run:

ext install Nuxt.mdc

Browser extension

Install Comark for GitHub to render Comark component and attribute syntax when viewing Markdown files on GitHub.

Chrome Web Store

Firefox Add-ons

View source and manual install

Packages

Comark packages share one pipeline. The core parser produces a serializable MarkdownDocument, while string and UI renderers consume that document. Install the package that matches your output:

UI frameworks

Use these when you need to render Markdown as an interactive document in Vue, React, Nuxt, Svelte, or Angular.

pnpm add @comark/vue

String renderers

Use these when you need string output without a UI framework, such as server-side HTML generation, static site builds, or CLI tools.

pnpm add @comark/html

Core

comark is the parser and document foundation used by every renderer. Use it directly to parse Markdown, inspect or transform the AST, cache or serialize documents, and render them back to Markdown.

All framework packages re-export its types, so you only need to install comark separately if you're not using a framework renderer.
pnpm add comark
import { parseMarkdown, createMarkdownParser } from 'comark'
import { renderMarkdown } from 'comark/render'

// Parse to AST
const document = await parseMarkdown(source)

// Transform nodes, then serialize back to Markdown
const output = await renderMarkdown(document)

// Reusable parser: initializes plugins once, faster for batch processing
const parseDoc = createMarkdownParser({ plugins: [shiki(), toc()] })

See the Parse API and Render API for full options.

Learn more

Explore Comark syntax and plugins:

Markdown syntax

Read how Comark parses CommonMark and GitHub Flavored Markdown.

Components

Embed block and inline components with props and slots.

Attributes

Add classes, IDs, and custom attributes to Markdown elements.

Plugins

Add syntax highlighting, math, Mermaid diagrams, and more.
© 2026 Vercel, Inc.