How to Choose a Linux Markdown Viewer | Read-Only or Read and Write
Pick a Linux Markdown viewer by three things: the install format, how the preview works, and whether your files stay untouched.
A dedicated Linux Markdown viewer is the easiest way to read Markdown files on Linux.
You can open a .md file in any plain text editor, but when it has many headings, lists and tables, symbols such as #, - and | stay on screen and get in the way of reading. A Markdown viewer interprets that syntax and shows the file as a finished document.
Three criteria help you decide which program to use.
- How it installs: Does it support
.deb, Flatpak or AppImage? - How the screen is laid out: Does it show the source and the preview side by side, or only the finished document?
- How it handles files: Can it open and edit your existing
.mdfiles as they are?
If you only read documents now and then, the screen layout matters most. If you write notes every day, look at the install format and the file handling too.
Editors that show the source and the preview together
If you want to learn the syntax while you write, an editor that shows the source and the result side by side is a good fit.
When you type # in the source, the preview shows a heading. It is easy to see which syntax produces which result.
Typical programs are the following.
Apostrophe
Apostrophe is a Markdown editor made for the GNOME desktop.
Its screen is kept simple so you can focus on writing, and you can check what you wrote in a preview. It also has a focus mode that strips away other screen elements.
You can install it from Flathub. If you use GNOME, it is the first one worth a look.
ghostwriter
ghostwriter is a Markdown writing program you can use on KDE.
It renders your document as HTML, and its Focus feature keeps your attention on the text around the cursor. It is released under the GPL v3 license.
It is a good choice if you want to edit the Markdown source directly and see the result.
Both programs work with ordinary files, so you can open your existing .md documents in them.
Editors that show the finished document
If you read documents more than you inspect the syntax, an editor that shows the result on a single screen is more convenient.
It hides symbols such as #, ** and | in the source and displays headings, bold text and tables in their finished form.
Typora
Typora is an editor that shows Markdown as a finished document while you write it.
You do not need to split the source and the preview into separate windows, so reading and editing flow naturally.
It has a Linux version, and the purchase terms it states are as follows.
- 15-day free trial
- License $14.99
- Buy once, use it from then on
- Up to 3 devices
mori
mori is also a Markdown editor where you can hide the source symbols and read and edit the finished document.
It is worth a look especially if you often work with documents that contain tables, formulas or checkboxes. The details follow below.
Comparing install formats for a Linux Markdown viewer
When you choose a Markdown editor, check the installer too. On Linux, the same program can be installed and updated in different ways depending on how it is distributed.
| Format | How to install | Updates | Good for |
|---|---|---|---|
.deb | sudo apt install ./file.deb | apt, depending on the repository setup | Ubuntu, Debian |
| Flatpak | flatpak install | flatpak update | The same app on many distributions |
| AppImage | Download the file and set the execute permission | Download a new file and replace the old one | Keeping installation to a minimum |
Each format has its own character.
- DEB: A package format familiar to Ubuntu and Debian users.
- Flatpak: Lets you install apps without depending much on the distribution. Because of sandbox permissions, though, it may not reach certain folders or external disks.
- AppImage: A format you can run without a separate package installation. To update, you download a new file and replace the old one.
If a file will not open in an app installed with Flatpak, check its file access permissions.
Installed it, but double-clicking opens another program
Even after you install a Linux Markdown viewer, double-clicking a .md file sometimes still opens your old text editor.
That is because installing a program and associating a file type are separate things. You need to set the newly installed app as the default program for .md files.
In your file manager, right-click a .md file and choose Open With Other Application. Pick the editor you want and set it as the default.
In a terminal, you can see the program currently associated with the type using this command.
xdg-mime query default text/markdownFor how to set the default app and how to open files from the terminal, see the article [Opening md files on Linux].
How mori displays Markdown documents
If you often read and edit Markdown files, going back and forth between the source and the result can be tiresome.
mori is a Markdown editor for Windows and Linux built so you can carry on this work on a single screen. As a Linux Markdown viewer it keeps things simple.
When you open a .md file, the Markdown symbols are hidden and the structure of the document appears in its finished form.
- Tables and checkboxes
- Formulas and footnotes
- Code blocks and images
- Headings and lists
It offers three view modes.
- Live view: Edit while looking at the result, with Markdown symbols hidden
- Source view: Check and edit the Markdown source directly
- Reading view: Read the document without any editing elements
In live view, only the Markdown symbols on the line with the cursor appear, faintly. When you want to see the source, switch to source view. Your cursor and scroll position stay put when you change the view.
You can choose the installer for your Linux environment.
- Ubuntu 22.04 or later, Debian 12 or later:
.debor AppImage - Other distributions: Flatpak
On Windows you can install it from the Microsoft Store, so you can keep using the same .md files on both operating systems.
You can try every feature free for 30 days, with no account and no card. After the trial, a one-time payment of $19.99 lets you keep using it. If you want to try it before installing, you can use the web editor, which runs on the same engine.
---
Choose a Linux Markdown viewer according to what you need it for. If you want to learn the source while you write, look at Apostrophe or ghostwriter. If you want to focus on reading and editing the finished document, look at Typora or mori.
Whichever you pick, first check that it opens your existing .md files as they are and that you can install it on your Linux distribution.