Repository navigation
Releases
v0.10.0
Added
- View a page's Markdown source (
v, or the code button in the toolbar):
syntax highlighted with line numbers, updated as the file changes.
Switching keeps your place, and double-clicking a line opens the
editor there. It works for web addresses, standard input and the
clipboard too, and copying those pages now includes their Markdown. It
opens at once with the plain source, then highlights it (with a busy
indicator);source_highlighting = false(also in the settings dialog)
turns highlighting off.
v0.9.0
Added
-
Web addresses:
markdown-viewer https://…/file.md, including GitHub and
GitLab file pages and repository addresses (which show the README).
Relative links and images point back at the web, and open pages
re-fetch every 10 seconds. Fetched withcurl. -
Hide the toolbar's word count and reading time with w (or by
clicking it); the choice is remembered.word_count = false(also in the
settings dialog) hides it by default. -
A settings dialog (, or the gear in the toolbar) that changes
the settings file and applies the change at once: rendering options
update the page, the style and custom CSS reload it, and launch options
are used next time. Changes keep the file's comments and are only saved
if valid. -
An About section in the help (
?): version and release notes, commit,
build target, compiler, bundled Mermaid and KaTeX, links to the
changelog, issues and license, and (when serving) the settings and state
files, editor and served folder, with a button to copy it all. -
markdown-viewer --versionshows the commit and build details (-V
stays short). -
Credits in the help: the projects included in every page (Mermaid,
KaTeX, GitHub's Markdown CSS, Octicons) and the Rust crates
markdown-viewer is built with, with versions, licenses and links. -
examples/slides.md: an example deck for presentation mode. -
examples/vault: an example Obsidian vault with wiki links, embeds,
callouts, highlights and comments.
Changed
- Opening a page without
--watchnow serves it from a viewer in the
background, so the settings dialog, live reload and everything else a
served page has work there too. The command returns at once, and the
viewer stops when the window closes.--no-open(without--watch)
still writes a standalone file, and--portnow works without--watch. - Watch mode stops by itself once the window (or tab) it opened is closed:
the server shuts down and the command exits after 5 seconds without a
page.--keep-runningorexit_when_closed = falsekeeps serving until
Ctrl-C;--no-opennever stops by itself. - The
[TOC]table of contents is a card with a "Contents" title and
quieter, nested links. It folds: the whole list, or any section with
sections under it. Folds are kept across live updates and opened for
printing.
Fixed
- Diagrams in presentation mode (s) were shrunk to a 16-pixel square by the
rule for toolbar icons; they now show, sized to fill the slide. Math
symbols drawn as SVG (such as square roots) were affected too.
v0.8.0
Added
- Windows support: release zips for x64 and ARM64, a Scoop bucket
(scoop bucket add mdellavo https://github.com/mdellavo/scoop-bucket),
andcargo binstalldownloads. On Windows the default browser comes from
the registry,--browserfinds Chrome, Edge, Brave, Vivaldi or Firefox in
their install folders,--pdfuses Chrome or Edge, editors installed as
.cmdfiles (VS Code, Cursor) work for click-to-source,--clipboard
uses PowerShell, and settings live in%APPDATA%\markdown-viewer. - PowerShell completions (
completions/_markdown-viewer.ps1).
Changed
- Line endings are LF on every platform (
.gitattributes).
v0.7.1
Added
- Writing custom CSS, a guide to
--css, and an
example theme,examples/custom.css.
Fixed
- Custom CSS can override the theme's colour variables (for example
.markdown-body { --fgColor-accent: … }); before, the built-in theme
rules won.
v0.7.0
Added
- CSV and TSV files are shown as tables.
- Click a table's column header to sort by it.
- GitHub references (
#123,GH-123,owner/repo#123,@user, commit
hashes) link to the repository found from the git remote, or set with
github_repo;github_references = falseturns them off. --lintreports writing problems (skipped heading levels, several
top-level headings, duplicate headings, images without alt text, empty
links, code fences without a language);lint_ignoreskips rules.- Linux desktop integration:
--install-desktopadds a "Markdown Viewer"
application for Open With; the.deb,.rpmand AUR packages include it. - Recent files:
--recent, or no arguments in your home folder, lists the
files and folders you opened lately (recent = falseturns it off).
Changed
- Running
markdown-viewerwith no arguments in your home folder shows the
Recent page instead of browsing the whole home folder.
v0.6.0
Added
- Tick task list boxes in the viewer to update the file.
-o DIRfor a folder writes a static site: linked pages, folder
indexes, the images they use, and the viewer UI with a Files sidebar.- An Arch Linux package,
markdown-viewer-binin the AUR, updated by the
release workflow.
Changed
- The workflows use the Node.js 24 versions of the GitHub actions
(checkoutv7,upload-artifactv7,download-artifactv8).
v0.5.0
Added
- Text size keys (
+,-,0), remembered between runs. --goto FILE:LINEscrolls a running viewer to a line (or opens one
there);--if-runningonly scrolls. Zed tasks and a VS Code extension in
editors/use it to show the cursor's line and follow the cursor.- Code block extras in the info string:
title="…", highlighted lines
({3-5}),showLineNumbers;--line-numbersnumbers every block; a wrap
button on each block. - Copy the page (
c): rich text, with the Markdown as plain text. --check-links(and--onlinefor web links), pluslin the viewer.- Obsidian:
![[Note]]and![[Note#Heading]]embed notes inline; a
Backlinks tab (b) lists the files linking to the page. - Show what changed since the last git commit (
D). [TOC]and<!-- TOC -->markers insert a table of contents.
Changed
- Live updates replace only the blocks that changed, so large files stay
fast; source positions below an edit are updated in place. - In an Obsidian vault, the whole vault is watched, and pages update when a
note they embed or that links to them changes.
v0.4.0
Added
- Click to jump to source: double-click a paragraph (or press
e) to open
the file in your editor at that line.--editor/editorsetting, with
Zed, VS Code, Cursor, Sublime Text and others detected automatically. - Reading positions are remembered per file.
- YAML front matter is shown as a table, like GitHub (
--front-matter hide
to hide it, as before). - Search the text of every file in the Files sidebar (
/), with results
linking to the matching line. - Image and diagram zoom: click to enlarge, scroll to zoom, drag to pan.
- Presentation mode (
s): full-screen slides split at---or headings. --number-headings.- Opening a file that's already being viewed brings its window to the front
instead of starting another viewer. - Preview standard input (
markdown-viewer -) and the clipboard
(--clipboard, following it live with--watch). - Obsidian notes, automatically inside a vault: wiki links, embeds,
callouts (including folded ones), highlights and comments. - Shell completions (bash, zsh, fish) and a man page, installed by Homebrew
and the Linux packages. - Debian and RPM packages for x86_64 and ARM64 on each release.
- Published to crates.io as
markdown-viewer-rs, withcargo binstall
support. - Releases update the Homebrew tap automatically.
Changed
- Every pull request now also builds the release binaries and packages.
- Browser tests of the viewer UI run in CI.
Fixed
- Pages with many diagrams no longer jump away from the top while loading.
- Diagrams and math failed to load on served pages that had a heading named
"Mermaid" or "KaTeX". - Alert icons were missing on served pages.
v0.3.0
Added
- Viewer toolbar and keyboard shortcuts (press
?): switch theme witht
(auto, light, dark) without reloading. Diagrams redraw to match. - Keyboard navigation:
j/k,d/u,g/G, andn/pfor headings. - Contents sidebar (
o) that follows your place as you scroll. - Folder mode:
markdown-viewer folder/(or no argument) shows the folder's
README or a file listing, and every Markdown file opened from it is live.
A file list with a filter (f) in the sidebar. - Live updates scroll to the first change and briefly highlight it.
- GitHub details: alert icons, the heading link icon, a copy button on code
blocks, and#gh-dark-mode-only/#gh-light-mode-onlyimages. - Word count and reading time in the toolbar.
--pdf PATHwrites a PDF through a Chromium-based browser, and a print
layout for printing from the browser.--style github|wide|book|compactand--css PATH.- A settings file,
~/.config/markdown-viewer/config.toml, for default
options. - The theme and sidebar you choose in the viewer are remembered between runs.
- README screenshots, in light and dark.
Changed
--portand--exit-when-closedno longer require--watchwhen serving
a folder.
v0.2.0
Added
- macOS Finder integration:
--install-finderadds a "Markdown Viewer" app
(Open With, double-click, drag and drop) and an "Open in Markdown Viewer"
Quick Action for the current user;--uninstall-finderremoves them. --exit-when-closed: in watch mode, exit once the page has been closed for
5 seconds. Used by the Finder integration.- The Homebrew formula explains how to turn on the Finder integration.