Skip to content

Export and sharing

Your notes are already portable — they are text files, and anyone can open them. These are for the moments when the other side wants something else.

File → Export has:

  • Export as PDF… — for print, or for someone who should not edit it
  • Export as HTML… — for the web, or for pasting into a mail client
  • Export as HTML (no styles)… — plain HTML, for pasting into another site or tool
  • Export as Word… — a .docx file
  • Export as Epub… — for e-readers
  • Export as Image… — the whole document as one PNG

All of them act on the document you are looking at. Export as PDF… opens the system print dialog — choose Save as PDF there. The others ask where to save the file.

Images are put inside the exported file, so the HTML, Word and Epub files work on their own, without the image files next to them. Comments (<!-- … -->) stay out of every export. If an image can’t be included — it is missing, or it points to a network location — mdai still exports and tells you which images were left out.

Columns stay side by side in PDF, HTML and Image export; the other formats keep all of their text, without the ::: lines.

OpenOffice (ODT), RTF, LaTeX, MediaWiki, reStructuredText, Textile and OPML need Pandoc, which mdai does not include. Install it free from pandoc.org. After that you don’t have to set anything up: mdai looks for Pandoc in the usual install locations and uses it. If you installed it somewhere else, open Settings, click Choose Pandoc… and pick the Pandoc program. These formats are listed in File → Export; if Pandoc is missing, mdai says so and points you to Settings.

In OpenOffice and RTF files images are not included; mdai tells you so after the export.

Edit → Copy as Markdown (also in the command palette) puts the clean source of the current document on your clipboard. What you paste elsewhere — into a chat, an issue tracker, a message to an AI assistant — is the text you wrote, not a wall of styling picked up from a rich-text copy.

What you export is built from the same document mdai shows you. If a heading looks like a heading on screen, it is a heading in the PDF, in the HTML and in the .md file on disk. There is no second, hidden format underneath, and nothing is re-interpreted on the way out. Formulas and Mermaid diagrams are drawn in HTML (no styles), Word, Epub and Image; in Export as HTML… they are written as their $…$ source and their code.