Home · Docs · Import + Export · Exporting — overview

Exporting — overview

Three export formats from the toolbar's download menu: Markdown (.md), Word (.docx), and PDF (via Print). Plus a Copy-as-Markdown one-click button. All client-side, no server roundtrip.

Exporting in sweetdocs is a one-click affair. The download icon in the doc toolbar opens a small menu with three formats; an adjacent button copies the doc to the clipboard as Markdown.

kyoto-trip Editing

The export menu

FormatWhat it doesArticle
Markdown (.md)Verbatim Markdown source as a downloadable fileExport as Markdown
Word (.docx)Real Word document: headings, lists, tables, embedded imagesExport as Word
PDF (via Print)Opens the browser print dialog with a clean stylesheet; user picks “Save as PDF”Export as PDF and Printing

The menu is on Markdown docs only (the SVG editor is a different surface). The button next to it copies the whole doc as Markdown to your system clipboard.

What’s the same in every export

Where exports happen

All three exports run client-side:

FormatEngine
MarkdownA Blob with the doc’s content, downloaded via a hidden <a download>
WordThe docx JavaScript library, tokenizing your Markdown via marked and walking the token tree to build a real Word XML document
PDFOpens a new tab with the rendered Markdown + a print stylesheet, then calls window.print()

No server roundtrip means exports are instant, don’t count against any quota, and work offline.

The Copy-as-Markdown button

Next to the export menu sits a clone/copy icon. Click it to copy the entire doc as Markdown to your clipboard — same content as the .md download but no file. The toast says Copied document as Markdown.

Useful for pasting into another Markdown tool, a ticket, a chat, or an email — without going through Downloads.

What the print button does

The print icon in the toolbar is a shortcut for PDF (via Print) — same effect as picking that menu item. See Printing.

Format picker

If you’re not sure which format to use:

You need…Pick…
Lossless source for another Markdown toolMarkdown
A file to email someone who’ll edit it in WordWord
A pristine document to print or attach as a PDFPDF (via Print) → “Save as PDF”
Copy a snippet into another doc fastThe Copy-as-Markdown button (clipboard)

What’s not in v1

MissingNotes
Bulk export of multiple docsExport is per-doc
Export a folder or library as a single archiveNot in v1
Native PDF generation (without the print dialog)We rely on the browser’s print → “Save as PDF” path
EPUB, HTML, RTF exportNot in v1
Style preset / template selection at export timeNot configurable