Export & Copy
Six ways to get your Markdown out of SoloMD.
Export menu (toolbar → Export)
| Format | Best for | Notes |
|---|---|---|
| HTML | Publishing, archives | Single-file HTML with inlined CSS. KaTeX + Mermaid render via CDN or bundled. |
| Sharing, printing | Generated with html2pdf.js, no external dependency. | |
| PDF (Print) | System print dialog | Uses WebviewWindow::print(). Choose a printer or "Save as PDF". |
| DOCX | Word / Office sharing | True .docx, not HTML-in-Word. Tables, headings, math, code preserved. |
| Image (PNG) | Social, screenshots | Full rendered preview captured as a single PNG. |
Copy to clipboard (toolbar → Copy split-button)
| Format | Best for |
|---|---|
| Rich HTML (default) | Paste into WeChat 公众号 / Notion / Confluence / Slack — keeps styling. |
| Markdown | Paste into another Markdown editor, GitHub issue, Discord. |
| Plain text | Strip all formatting — just the prose. |
| Image | Quick visual share to Twitter / 微博. |
Print (Ctrl/⌘ + P)
Opens the native system print dialog. On macOS uses NSPrintOperation;
on Windows uses the WebView2 print controller; on Linux uses WebKitGTK's print.
The content sent to the printer is a clean render of your Markdown — no toolbar,
no sidebar, just the document.
Tip: from the print dialog, choose "Save as PDF" for a system-quality PDF (often better layout than the built-in PDF exporter).
Image paste & embedding
When you paste or drag an image into SoloMD, it's saved to a
_assets/ folder next to your document (if the file is saved)
and a relative Markdown image link is inserted:
 Works with copy-from-browser, screenshots from Snipping Tool / ⌘⇧4, and drag from Finder / Explorer.
CJK and encoding
SoloMD auto-detects UTF-8, GBK, Big5, Shift-JIS, EUC-KR, and a few others when reading files. It saves in the source file's encoding by default (set per-tab in the status bar), so you don't accidentally convert legacy files to UTF-8.
Frequently asked questions
Which export formats are built in, and which need Pandoc?
HTML, PDF, DOCX and PNG export are built in with no external dependency. EPUB, ODT, LaTeX and RTF go through Pandoc, which SoloMD looks up on your PATH.
Do math and diagrams survive export?
Yes — KaTeX math and Mermaid diagrams render in HTML and PDF exports, and DOCX export preserves tables, headings, math and code as real Word structures (a true .docx, not HTML pasted into Word). Images are embedded in the .docx file.
How do I paste styled content into WeChat 公众号 or Notion?
Use the Copy split-button → Rich HTML. It carries the rendered styling with the content, so pasting into 公众号, Notion, Confluence or Slack keeps formatting.