comark

Implement and debug Markdown parsing, AST transforms, and React rendering with Comark.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/goddard-ai/goddard --skill comark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comark
Source: https://github.com/goddard-ai/goddard/tree/main/.agents/skills/comark
Command: npx skills add https://github.com/goddard-ai/goddard --skill comark

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Markdown parsing, AST transforms, and UI rendering are often siloed across tools; Comark provides a unified, plugin-driven pipeline to implement, debug, and review end-to-end Markdown workflows.

Core Features & Use Cases

  • Unified parser and renderer with a clear parse-render boundary and optional streaming support.
  • Plugin ecosystem enabling syntax highlighting, math, mermaid diagrams, summaries, toc, and headings.
  • Use cases include editor integrations, documentation sites, and server/client rendered docs with reusable parsers.

Quick Start

Create and run a parse or render flow to see Markdown rendered through Comark.

Frequently Asked Questions about comark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse and render Markdown in a React application?

Comark enables React Markdown rendering through its ComarkRenderer component, providing a unified pipeline that handles server-side parsing and client-side rendering for editor integrations and documentation sites.

Can I add syntax highlighting and math support to a Markdown parser?

Yes, you can add syntax highlighting and math support to Markdown parsing using Comark's configurable plugin system, which supports plugins like highlight, math, mermaid, toc, and headings for extended rendering capabilities.

What is the best way to handle Markdown AST transforms before rendering?

Comark provides a unified, plugin-driven pipeline for Markdown AST transforms, maintaining a clear parse-render boundary that allows transformations between server-side parsing and client-side rendering stages.

Does Comark support streaming UIs for Markdown rendering?

Comark supports optional streaming for Markdown rendering, enabling incremental content processing and display in streaming UIs through its parse and render pipeline with server-client separation.

How do I configure a custom Markdown parser with plugins?

Comark allows custom Markdown parser configuration through its createParse function and configurable plugin system, enabling teams to define specific parsing behaviors and attach plugins for tailored document processing.

Why should I separate Markdown parsing and rendering on the server and client?

Separating Markdown parsing and rendering across server and client with Comark enables reusable parsers and optimized performance, providing a clear parse-render boundary for server-side parsing and client-side rendering in documentation sites.