Examples

Runnable Comark examples across frameworks, Vite setups, plugins, and AI streaming.

Each example wires Comark into a framework or build setup, with its full source browsable inline.

Frameworks

Astro

Render a Markdown blog with Astro content collections, Zod schemas, and React components.

Next.js

Render a Markdown blog with the Next.js App Router and React Server Components.

Nuxt

Render Comark component syntax with Nuxt UI prose components through the @comark/vue Nuxt module.

SvelteKit

Render Markdown on the server in SvelteKit with lazy components and MarkdownAsync.

VitePress

Add Comark component and attribute syntax to VitePress through its markdown-it configuration.

Vite

Angular

Render a Markdown blog, component syntax examples, and a live editor with Angular and Vite.

HTML preview

Edit Comark Markdown in a split pane and preview the rendered HTML inside a sandboxed iframe.

React

Render a Markdown blog, component syntax examples, and a live editor with React and Vite.

Svelte

Render a Markdown blog, component syntax examples, and a live editor with Svelte 5 and Vite.

Vue

Render a Markdown blog, component syntax examples, and a live editor with Vue and Vite.

Plugins

Math formulas

Render inline and display LaTeX math formulas in React and Vite with KaTeX.

Mermaid diagrams

Render Mermaid diagrams from fenced code blocks in React and Vite.

Binding (frontmatter + data)

Interpolate frontmatter and reactive data into Markdown with the binding plugin in Vue and Vite.

Syntax highlighting

Highlight code blocks in light and dark themes with Shiki in Vue and Vite.

JSON Render

Render UI component trees from JSON Render and YAML specs in Vue and Vite.

Math formulas

Render inline and display LaTeX math formulas in Vue and Vite with KaTeX.

Mermaid diagrams

Render Mermaid diagrams from fenced code blocks in Vue and Vite.

Punctuation

Convert plain-text quotes, dashes, ellipses, and symbols into typographic characters in Vue and Vite.

AI

AI SDK

Stream AI chat responses in Nuxt and render each message part live with Comark.
© 2026 Vercel, Inc.