mdr

CleverCloud·CleverCloud.mdr

A lightweight Markdown viewer with live reload and multiple rendering backends

mdr opens a Markdown file and renders it, without a project, a server or an editor extension. It reloads the document as it changes on disk, renders Mermaid diagrams to SVG natively rather than through a headless browser, and offers three backends: a native window (gui), the system webview (web), and a terminal UI (tui) that works over SSH.

winget install --id CleverCloud.mdr --exact --source winget

Latest 0.7.0·December 3, 2026

Release Notes

A clicked link stays in mdr, the web page can be printed for an editor preview, and the document column has a width of its own. Everything below landed on main after 0.6.1. Added

  • A clicked link stays in mdr (#75). gui and the terminal share one decision: a relative Markdown file replaces the document in this window, a #fragment scrolls to the heading the table of contents already names, and http, https and mailto still go to the system browser. Anything else is refused. In the terminal the target stays on each span, so a link split by wrapping — or sitting in a list, a table or a footnote — is still the link. A click on the bullet, the table of contents or ordinary text does nothing.
  • --export html writes the web page to stdout (#79, thanks @Andsbf). Same pipeline as the window: Mermaid as SVG, images inlined, highlighting, the table of contents. It takes a file or stdin, and relative images resolve against the document's directory, or the working directory when the document is piped. A build without the web backend says which feature to enable. --allow-connect is accepted only together with --export, and it changes one CSP directive, connect-src, from 'none' to 'self', so a preview server on the same origin can tell the page to reload. A reader that closes the pipe early still exits 0.
  • content-width in config.kdl (#82, thanks @cbecker). The cap on the document column in gui and web. It defaults to 900, so an existing config draws the same column it did. A value that is not a positive number is ignored, with a warning.
  • The web table of contents folds (#78, thanks @Andsbf). A section collapses, the choice is kept in sessionStorage for the page, and the print stylesheet still shows every entry. The heading text is escaped before it is placed in the link: the page allows inline scripts, and that text was being interpolated raw.

Fixed

  • gui tables fit the pane (#72, #76). Narrow columns were scaled down with the wide ones and then pinned to a floor that left one pixel of text, so a word wrapped one letter per line, and the width handed back by that floor pushed the last columns past the edge. Width is now taken from the columns that have some to spare. A table that already fits is left alone.
  • The web fullscreen overlay (#77, thanks @Andsbf). The expand icon stays at its own size, and a click anywhere on the overlay closes it. The image used to fill the overlay, so most of what looked like the backdrop did nothing.
  • Percent-encoded paths are UTF-8 (#80, thanks @Thijs226). caf%C3%A9.md was decoded one byte at a time and opened as café.md. The bytes are reassembled before they are read as a string. A literal Unicode character, a plus sign, and a malformed escape are left as they are.

Changed

  • Dependencies (#84). comrak 1.2, the egui stack at 0.37 (egui_commonmark 0.26), resvg and usvg 0.50, muda 0.21, notify 9. rustls moves to 0.23.46. The minimum supported Rust stays 1.95. comrak 1 gives emphasis, strong, strikethrough, thematic breaks and table rows a payload; the matches follow that. notify's debouncer now reports a batch, and a Rescan re-reads the document.
  • The Nix package builds again (#81, thanks @JHolba; #86, thanks @papajade55-debug). Linux inputs follow the renamed nixpkgs attributes (wrapGAppsHook3, xdotool), the platform check is stdenv.hostPlatform.isLinux, and the documented Nix commands pass --no-write-lock-file because this repository does not commit a flake.lock. Oniguruma is a build input — onig_sys asks pkg-config for it — and CI builds the flake on Linux.

Installer type: zip

x64—856EDE4A290609F8FACEE98C937DA6DA4B33756856D28AAB4C74EDFAEA117B2F

Details

Homepage
https://github.com/CleverCloud/mdr
License
MIT
Publisher
CleverCloud
Support
https://github.com/CleverCloud/mdr/issues
Copyright
Copyright (c) 2026 Clever Cloud
Moniker
mdr

Tags

clidocumentationmarkdownmermaidreaderrustterminaltuiviewer

Older versions (2)

0.6.1
x64—465E39859E119A7658169847ABABBE40B2D17B339DB94F34EAAB3E9739177048
0.6.0
x64—53D2AB478B392004385D964F0C41EF80F6C338437C0899E19C5B71D61F3AAB42