Getting started

Installation

Install comark-pdf with pnpm, npm, or yarn. comark is a required peer dependency.
pnpm add comark-pdf comark

comark is a peer dependency.

Optional peers

Some features need extra packages at runtime:

PackageUsed for
mathjax-fullMath plugin — $…$ / $$…$$ as SVG instead of Courier source
mermaidMermaid fences as SVG (may need DOM / happy-dom)
@jasy/pdfDirect jasy primitives in custom components

See Plugins and Custom components.

Copyright © 2026