English | 繁體中文
A free, open-source Markdown reader and editor for macOS, Windows and Linux. Open a .md file to read it with a table of
contents, or edit it beside a live preview, on your computer or straight from a GitHub repository, and ask an AI model
you choose to help with the writing: your own API key, or a model running on your computer.
Download the latest release for macOS, Windows or Linux.
Get the file for your computer from the latest release. Each is a single program with everything it needs, .NET included; there is nothing else to install.
| Computer | File name ends in |
|---|---|
| Mac with Apple silicon | osx-arm64.zip |
| Mac with an Intel processor | osx-x64.zip |
| Windows | win-x64.zip (win-arm64.zip on Arm) |
| Linux | linux-x64.tar.gz (linux-arm64.tar.gz on Arm) |
- macOS: unzip it and move Polhem MD to Applications. The app is signed and notarized by Apple, so it opens like any other.
- Windows: unzip it and run Polhem MD.exe. It is not signed yet, so if Windows says it protected your PC, choose More info > Run anyway.
- Linux: extract it and run
./polhem-md.
What changed in each version is in the changelog.
- Read, at the top of the window, shows the document alone, in a column of a comfortable reading width; Cmd+E (Ctrl+E) switches between Read and Edit. Read shows one document at a time: whatever you open takes its place, and back and forward return to the ones before.
- A rail along the edge marks each heading and the section being read. Point at it to open the table of contents, or pin the table beside the text; the app remembers the pin.
- Find in the preview with Cmd+F (Ctrl+F), with match case, whole word and regular expressions.
- Links to other Markdown files open them in the app; images, code blocks with syntax colors, tables, task lists, footnotes, math and diagrams are drawn as on GitHub.
- Select text across paragraphs and copy it, or select all of it from the Edit menu.
- Open a document from the web with File > Open URL…, or by dropping its address on the window. A GitHub or GitLab file page, or a gist, opens its file. Its address shows in the status bar; click it to open it in your browser. It is shown to read; Save As keeps a copy to edit. Images from the document's own site load at once; those from other sites wait until you choose to load them, so they cannot tell other sites that you read it.
- File > Open Recent lists the last ten documents you opened or saved under a new name, the latest first: files on this computer, GitHub files and web documents, however you opened them. It is the same in every window, kept between runs, and Clear Menu at its bottom empties it. A file deleted since is said so and taken off the list.
- Edit shows the editor, and the preview beside it in step as you type and scroll. The button at the top right of each tab, or Option+Cmd+P (Ctrl+Alt+P), shows or hides that tab's preview; a new tab follows your last choice.
- The editor colors Markdown as you write, keeps the text in a centred column with room between the lines, and draws code in a monospaced font even when the text is in a proportional one.
- A formatting bar for bold, headings, lists, links, tables and more, from the View menu.
- Find and replace in the editor, with match case, whole word and regular expressions.
- The folder sidebar lists a folder's Markdown files; New File creates one there. Changes save on their own, or with Cmd+S when auto save is off.
- File > Export > HTML… saves the document as one web page with its images inside, in the preview's font, size, column and theme. Images held back from other sites are left out, and links to files on your computer become text.
- File > Export > PDF… saves the document as a PDF that looks as Read does, on light A4 or Letter paper, with text that can be searched and copied. Web links can be clicked, and links within the document go to the page of their heading. Code blocks and tables wrap to the paper, and pages end between lines and blocks.
- Paste or drop an image into the editor, and it is saved in the
imagesfolder beside the document and linked where the caret is. A screenshot is named by the date and time, an image file keeps its name, and neither replaces a file already there; a new document is saved first. In a GitHub file the image waits with your changes, shows in the preview, and is committed with them when you submit. - In Edit, tabs keep several documents in one window. A file clicked in the sidebar or a linked document takes the tab shown; Cmd-click (Ctrl-click), Open in New Tab from a file's menu in the sidebar, File > Open and a dropped file open a new tab. A file already open is shown in its tab, in whichever window has it. Cmd+1 to Cmd+8 show a tab by its place, and Cmd+9 the last one.
- The next time the app starts, it opens again the windows and tabs that were open when it quit: files, GitHub files and web pages, each window in Read or Edit as it was. A new document never saved is not kept; it is offered to save when it closes.
- Each tab goes back and forward through the documents it showed, scrolled where you left them, with the arrows in the toolbar or Cmd+[ and Cmd+]. The Window menu lists the tabs of every window.
- Open a GitHub repository from the GitHub icon in the activity bar on the left, beside the icon of the files on this computer. Connect your GitHub account in Settings > Connections, where you also see which accounts Polhem MD's GitHub App is installed on. Then pick a repository in the GitHub panel, and the sidebar lists the Markdown files of its default branch; a file opens to edit. The repository's name above its files switches to another repository, and the branch in the status bar to another branch. The repository and branch you last opened come back the next time. Submit… (or Cmd+S) commits your changes to its branch; when the branch takes changes through pull requests, or you cannot write to the repository, they go to a new branch, in your fork if needed, with a pull request. Changes not yet submitted are kept until you submit them. A GitHub file opened by its address stays read only.
- The repository's own images show in the preview and in exports, a private repository's too: they are read with your GitHub account, which is never sent to any other site.
- AI chat beside the document (Cmd+Shift+J). It sends the selection or the whole document with your question, or nothing, as you choose under the prompt. Files you include from the sidebar (right-click, Include in AI Chat) go with it for the model to read.
- Write a web address in the chat and ask about it: the model reads that page, and the chat shows which address it read. Only addresses you write are read, never ones a page mentions, and a site that refuses programs or needs a sign-in is reported as such.
- When you ask for a change, the model proposes edits that show in the editor, struck through with the new text below. Accept or reject each one, or all of them; nothing changes until you do, and one undo takes an accepted edit back. In Read the chat only summarizes and discusses the document; it proposes changes in Edit. A document opened from the web is not changed here: Save As keeps a copy to edit.
- Edit with AI (Cmd+J) rewrites the selection, or the paragraph at the caret, in place: type an instruction or pick a command such as Polish, Shorten, Expand, Translate, Fix Grammar or Make a Table, then accept, retry or discard.
- Save instructions you use often as your own commands in Settings, each with the model it runs on, and use them with
Cmd+J or by typing
/in the chat. - Text the AI wrote is shown in violet until you change it, so you can tell it apart.
Polhem MD has no server of its own: requests go from your computer straight to the model you set up. In Settings, under Models, add any service with an OpenAI-compatible Chat Completions API. There are templates for OpenAI, Claude, OpenRouter, Ollama and LM Studio; a model running on your computer needs no key. A model that takes no tools still chats; it only cannot propose edits or read web pages.
On a Mac with Apple Intelligence (macOS 26 or later on Apple Silicon), the Apple Intelligence template uses the model built into macOS: nothing to install, no key, and nothing leaves the computer. It is a small model that takes no tools, so it suits summaries and questions about a document rather than long rewrites. The template appears only on a Mac that can run it. On Windows and Linux, or on an older Mac, Ollama or LM Studio is the way to a model that needs no key and keeps everything on the computer.
API keys are kept in the system's credential store (the macOS Keychain, the Windows Credential Manager, or the Secret Service on Linux), not in the settings file. On Linux without a keyring service, a key lasts for the session only.
- The interface is in English, Traditional Chinese, Simplified Chinese and Japanese, and switches at once.
- Light and dark themes, or the system's.
- A choice of document font (sans-serif, serif or monospaced) and size.
| Action | macOS | Windows and Linux |
|---|---|---|
| Read / Edit | Cmd+E | Ctrl+E |
| New document in a tab / new window | Cmd+N / Cmd+Shift+N | Ctrl+N / Ctrl+Shift+N |
| Close the tab / the window | Cmd+W / Cmd+Shift+W | Ctrl+W / Ctrl+Shift+W |
| Next tab / previous tab | Ctrl+Tab / Ctrl+Shift+Tab | Ctrl+Tab / Ctrl+Shift+Tab |
| First to eighth tab / last tab | Cmd+1 to Cmd+8 / Cmd+9 | Ctrl+1 to Ctrl+8 / Ctrl+9 |
| Back / forward in the tab | Cmd+[ / Cmd+] | Ctrl+[ / Ctrl+] |
| Open a file / a folder | Cmd+O / Cmd+Shift+O | Ctrl+O / Ctrl+Shift+O |
| Open a URL | Cmd+L | Ctrl+L |
| Save / Save As | Cmd+S / Cmd+Shift+S | Ctrl+S / Ctrl+Shift+S |
| Preview beside the editor | Option+Cmd+P | Ctrl+Alt+P |
| Show or hide the sidebar | Cmd+Shift+L | Ctrl+Shift+L |
| Find / Replace | Cmd+F / Option+Cmd+F | Ctrl+F / Ctrl+H |
| Undo / Redo | Cmd+Z / Cmd+Shift+Z | Ctrl+Z / Ctrl+Shift+Z |
| Edit with AI | Cmd+J | Ctrl+J |
| Show or hide the AI chat | Cmd+Shift+J | Ctrl+Shift+J |
| Settings | Cmd+, | Ctrl+, |
Polhem MD is built with the polhem-dev packages and shared for free:
- Polhem.Markdown: the Markdown source editor and viewer. That repository holds the packages; this one is the editor app made with them.
- Polhem.Chat: the chat panel.
With the .NET 10 SDK:
dotnet run --project src/PolhemMd
dotnet test PolhemMd.slnxFound a bug, or have an idea? Open an issue on GitHub, or choose Help > Report an Issue in the app.




