Export Formats

HTML, PDF, Markdown source, and image card — four formats for every publishing scenario

How to export: click "Export" in the editor top bar → choose a format → (image cards require an additional size preset selection) → click Download

HTML Single File

A fully self-contained HTML file with all theme styles, syntax highlighting, and rendered content embedded inline.

  • Zero external dependencies — works offline
  • Supports both light and dark mode via prefers-color-scheme
  • Mermaid diagrams exported as inline SVG
  • Ideal for publishing to any static hosting or archiving

PDF

Generated through the browser print engine (window.print). Only light mode is included — suitable for printing and formal documents.

  • Light mode only (print context default)
  • Page breaks are automatically inserted at h2 headings
  • Recommended: use "Save as PDF" in browser print dialog

Markdown Source

Export the raw .md source file. Useful for migrating content to other platforms or committing to a Git repository.

  • Plain text, universally compatible
  • Preserves all extended syntax (math, Mermaid, custom blocks)
  • Use for migration, version control, or backup

Image Card

Screenshot the rendered preview as a PNG image, preserving the full theme, syntax highlighting, and layout. Great for social platforms.

  • Captures the full rendered preview at a chosen preset size
  • Preserves all theme colors, fonts, and code highlighting
  • Multiple size presets — see table below

Image Card Size Presets

Preset Size Use Case
Standard Wide 800px WeChat long-form, Zhihu articles
Social Cover 1200px OG cover, Twitter Card
Square 1080px @2x Instagram, Moments
Portrait 1080px @3x Xiaohongshu (RED)