Export
Export Markdown to PDF, HTML, Word, RTF and plain text.
MarkdownMate is a free Markdown editor for Mac and Ubuntu. Turn a note into a PDF, a web page, a document for your word processor or plain text, copy it formatted into mail, or print it. Everything runs on your computer, offline. Everything below is in both apps; where they differ, it says so.
Markdown to PDF
Export a note as a PDF that looks like the preview: headings, code highlighting, tables, images, math, Mermaid diagrams, coloured alerts, ==highlights== and a [TOC] table of contents. Exports keep a neutral light look whatever theme you write in.
Mac: export from the File menu. Ubuntu: main menu ▸ Export as PDF… saves <note>.pdf next to the note, without the print dialog.
Markdown to HTML
Export a note as an HTML page you can open in any browser, publish or send. Alerts, highlights and [TOC] come along.
Ubuntu: Export as HTML… (Shift+Ctrl+E) writes one standalone .html file: CSS embedded, light theme, code highlighting, KaTeX formulas, Mermaid diagrams as SVG, and no script. Relative images and links stay relative, so keep the file next to the note or copy its images along; wiki links become links to the target note. Front matter is left out.
A whole folder as HTML
Export Folder as HTML… (File menu on Mac, main menu on Ubuntu, with a folder open) turns every note of the open folder into a standalone HTML page, at the same path, in an empty or new folder you pick. An index.html lists the notes as a tree by folder. Wiki links (aliases too) and relative links to notes point at their pages, and the images the notes show come along, so you can open the result in a browser, publish it or hand it over. On Ubuntu it shows its progress and can be cancelled.
Markdown to Word (.docx)
Export as Word… saves the note as a .docx for people who work in Word, Pages, Google Docs or LibreOffice Writer. Headings use Word's Heading 1–6 styles, so the navigation pane and a table of contents work. Links, images, lists, tables, quotes, code and callouts come along as in the rich text export.
Mac: File ▸ Export as Word…. Ubuntu: main menu ▸ Export as Word…; images in PNG, JPEG and GIF are embedded. Neither app has a shortcut for it.
Markdown to RTF
Export as rich text (RTF) for a word processor: headings, bold and italic, links, lists, quotes, code and tables. ==Highlights== get a yellow background, and alerts show a bold title in their colour above the indented text.
Mac: opens in TextEdit, Pages or Word; a note with local images exports as an RTFD document with its pictures. Ubuntu: opens in LibreOffice Writer, AbiWord and other word processors; images become alt (path) text and formulas their TeX.
Markdown to plain text
Export as Plain Text saves a .txt with your words and code, without Markdown symbols. Highlights keep their == and [TOC] stays as written.
Ubuntu: bullets become • , links text (url), tables tab-separated rows, formulas their TeX.
Copy as HTML or Rich Text
Copy as HTML (⌥⇧⌘C on Mac, Alt+Shift+Ctrl+C on Ubuntu) copies the selection, or the whole note, so it pastes formatted into mail and rich-text apps, and as Markdown into plain-text apps.
Copy as Rich Text copies it as RTF, with headings, bold and italic, links, lists, highlights and coloured alerts, and as plain text without Markdown symbols elsewhere. Mac: paste into TextEdit, Pages or Mail. Ubuntu: paste into LibreOffice, Thunderbird and web mail.
Print and share
Print prints the note as the preview shows it. Mac: File ▸ Print… (⌥⌘P), to a printer or the system's Save as PDF. Ubuntu: Print… (Shift+Ctrl+P), to a printer or Print to File (PDF), always light; code blocks, tables and images are kept off page breaks where they fit.
Mac only: File ▸ Share… sends the note with Mail, Messages, AirDrop, Notes and more.
Custom CSS
Give the preview and your exports your own look with a CSS file. Turn on Custom CSS (Settings ▸ Preview on Mac, Preferences on Ubuntu) and click Edit CSS…: the app creates preview.css with commented examples to start from. Its rules come after the built-in theme, so they win, and open previews update when you save the file.
body {
font-family: Georgia, serif;
font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
color: #1f4e79;
}
It styles the preview, Print, Export as HTML, Export as PDF and Export Folder as HTML. Copy as HTML, Copy as Rich Text, RTF and Word keep the built-in look. A file over 256 KB is ignored. Ubuntu: web fonts and images in the CSS stay blocked unless Load Images from the Web is on.
Offline, and what the files contain
Exports are made on your computer: no upload, no account, no converter service. The note stays a plain Markdown file; an export is a separate copy.
Images from the web (http(s)) differ. Mac: the preview, HTML and PDF exports load them. Ubuntu: they are not downloaded in Print or Export unless you turn on Preferences ▸ Privacy ▸ Load Images from the Web (off by default); an exported HTML file always lets the browser that opens it load them. See the privacy policy.
Before you export a folder, Find Unused Attachments… (Edit ▸ Find on Mac, the main menu on Ubuntu) lists the files in your assets folders that no note uses anymore, so you can tidy up first. MarkdownMate never deletes them itself.
More: the Markdown syntax guide, notes in Markdown and every key in the keyboard shortcuts.
Get MarkdownMate
Ubuntu
sudo add-apt-repository ppa:homielab/markdownmate
sudo apt update
sudo apt install markdownmate
Ubuntu 24.04 or later (amd64)
No account, no cloud: notes stay as .md files on your disk.