Read and write Markdown,
with AI on your terms

Polhem MD is a free, open-source Markdown reader and editor for macOS, Windows and Linux. Read a .md file with its table of contents, edit it beside a live preview, and ask an AI model you choose to help with the writing.

macOS · Windows · Linux · MIT licensed

Reading an article in Preview Only, with its table of contents pinned beside the text

Read

Preview Only shows the document alone, in a column of a comfortable reading width.

Table of contents

A rail along the edge marks each heading and the section you are reading. Point at it, or pin the table beside the text.

Drawn as on GitHub

Images, code with syntax colors, tables, task lists, footnotes, math and diagrams.

Find and follow

Search the preview with regular expressions, and open linked Markdown files in the app.

From the web

Open a document by its address, or a GitHub file page or gist. Images from other sites wait until you load them.

Write

An editor and a preview that keep in step as you type and scroll.

  • Switch between the editor, both side by side, and the preview alone with a keystroke.
  • Markdown is colored as you write, in a centred column with room between the lines.
  • A formatting bar, find and replace, and a folder sidebar that lists a folder's Markdown files.
  • Changes save on their own, or when you save, as you prefer.
Editing beside the live preview, with the folder sidebar and the formatting bar

Write with AI

Help from a model you choose: your own API key, or a model running on your computer. There is no Polhem MD server in between.

  • AI chat beside the document sends the selection, the whole document or nothing with your question, as you choose.
  • Write a web address in the chat and the model reads that page. Only addresses you write are read.
  • Proposed edits show in the editor, struck through with the new text below. Nothing changes until you accept them.
  • Edit with AI rewrites a selection in place: polish, shorten, expand, translate, or your own saved commands.
  • Text the AI wrote stays violet until you change it.
  • Works with any OpenAI-compatible service, with templates for OpenAI, OpenRouter, Ollama and LM Studio.
The AI chat proposing an edit, shown in the editor to accept or reject

And more

Made to feel at home on your desktop.

Four languages

English, Traditional Chinese, Simplified Chinese and Japanese, switched at once.

Light and dark

Pick a theme, or follow the system's.

Your fonts

Sans-serif, serif or monospaced text, at the size you like.

Keys stay safe

API keys live in the system's credential store, never in the settings file.

The welcome a new window shows before a document is opened

Download

Version 0.1.1, for macOS, Windows and Linux. Each download is a single program with .NET included, so there is nothing else to install.

macOS

Apple silicon Intel

macOS 13 or later. Signed and notarized by Apple: unzip it, move Polhem MD to Applications and open it.

Windows

x64 Arm

Unzip it and run Polhem MD.exe. It is not signed yet: if Windows says it protected your PC, choose More info > Run anyway.

Linux

x64 Arm

Extract it and run ./polhem-md.

Free and open source

Polhem MD is free and open source. If you find it useful, a star on GitHub helps others find it.

Found a bug, or have an idea? Open an issue, or choose Help > Report an Issue in the app.

Star Polhem MD on GitHub