Skip to content

Releases

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 17:02

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

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:04

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 with curl.

  • 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 --version shows 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 --watch now 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 --port now 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-running or exit_when_closed = false keeps serving until
    Ctrl-C; --no-open never 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

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:16

Added

  • Windows support: release zips for x64 and ARM64, a Scoop bucket
    (scoop bucket add mdellavo https://github.com/mdellavo/scoop-bucket),
    and cargo binstall downloads. On Windows the default browser comes from
    the registry, --browser finds Chrome, Edge, Brave, Vivaldi or Firefox in
    their install folders, --pdf uses Chrome or Edge, editors installed as
    .cmd files (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

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:17

Added

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

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:00

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 = false turns them off.
  • --lint reports writing problems (skipped heading levels, several
    top-level headings, duplicate headings, images without alt text, empty
    links, code fences without a language); lint_ignore skips rules.
  • Linux desktop integration: --install-desktop adds a "Markdown Viewer"
    application for Open With; the .deb, .rpm and AUR packages include it.
  • Recent files: --recent, or no arguments in your home folder, lists the
    files and folders you opened lately (recent = false turns it off).

Changed

  • Running markdown-viewer with no arguments in your home folder shows the
    Recent page instead of browsing the whole home folder.

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 01:55

Added

  • Tick task list boxes in the viewer to update the file.
  • -o DIR for 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-bin in the AUR, updated by the
    release workflow.

Changed

  • The workflows use the Node.js 24 versions of the GitHub actions
    (checkout v7, upload-artifact v7, download-artifact v8).

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:46

Added

  • Text size keys (+, -, 0), remembered between runs.
  • --goto FILE:LINE scrolls a running viewer to a line (or opens one
    there); --if-running only 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-numbers numbers every block; a wrap
    button on each block.
  • Copy the page (c): rich text, with the Markdown as plain text.
  • --check-links (and --online for web links), plus l in 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

Choose a tag to compare

@github-actions github-actions released this 25 Nov 20:10

Added

  • Click to jump to source: double-click a paragraph (or press e) to open
    the file in your editor at that line. --editor / editor setting, 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, with cargo 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

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:32

Added

  • Viewer toolbar and keyboard shortcuts (press ?): switch theme with t
    (auto, light, dark) without reloading. Diagrams redraw to match.
  • Keyboard navigation: j/k, d/u, g/G, and n/p for 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-only images.
  • Word count and reading time in the toolbar.
  • --pdf PATH writes a PDF through a Chromium-based browser, and a print
    layout for printing from the browser.
  • --style github|wide|book|compact and --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

  • --port and --exit-when-closed no longer require --watch when serving
    a folder.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 16:54

Added

  • macOS Finder integration: --install-finder adds a "Markdown Viewer" app
    (Open With, double-click, drag and drop) and an "Open in Markdown Viewer"
    Quick Action for the current user; --uninstall-finder removes 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.