Syntax highlighting
Highlighted code blocks with a separate palette, optional line numbers and language icons.
A fast, themeable viewer with syntax highlighting, flexible layout, rich links and live file monitoring.
mdv
Fast, themeable Markdown viewer for the terminal
Features
- Terminal-first rendering
- Rich theming: `nord` `gruvbox` `tokyonight`
- Live monitoring with `--monitor`
Preset │ Wrap
─────────┼──────
reader │ word
compact │ char
fn main() { println!("hello, mdv"); }
Precise rendering inside ANSI-capable terminals, tuned to your workspace.
Built-in themes, separate code palettes and on-the-fly overrides for UI and syntax colors. Add your own YAML theme and make it yours.
$ mdv --monitor notes.md
edit → save → refreshed view
Edit in one pane, read in another. --monitor refreshes the rendered view when the source file changes.
Set width, wrapping, heading layout and table behavior. Choose clickable links, inline URLs or a reference table at the end.
--cols100--wrapword--heading-layoutlevel--link-styleinlinetable--table-wrapfitSmall tool. Plenty of possibilities.
Highlighted code blocks with a separate palette, optional line numbers and language icons.
Start with reader, compact, pretty or showcase. Save your own combination of settings in YAML.
Search, select and copy text. Jump to a source line or open the file in your editor.
Find Markdown files interactively. Browse a directory while respecting hidden files and Git ignore rules.
Use --from to begin at a section, or --reverse to read the document from the end.
Read stdin, export HTML, control color output and share configuration across your machines.
Pick your flavor.
cargo install mdvRequires Rust 1.95 or newer and Cargo. Works on Windows, macOS and Linux.
irm https://whosowsee.github.io/mdv/install.ps1 | iexWindows x64 and ARM64. Downloads the latest release, verifies SHA-256 and adds mdv to your user PATH.
curl -fsSL https://whosowsee.github.io/mdv/install.sh | shLinux and macOS, x86_64 and ARM64. Requires curl and unzip. Installs to ~/.local/bin after SHA-256 verification.
curl -fLO "https://github.com/WhoSowSee/mdv/releases/download/v6.1.1/mdv-v6.1.1-x86_64-unknown-linux-gnu.pkg.tar.zst"
sudo pacman -U "./mdv-v6.1.1-x86_64-unknown-linux-gnu.pkg.tar.zst"Downloads the package into the current directory, then installs it with pacman. Arch Linux x86_64; requires curl and glibc 2.39 or newer.
curl -fLO "https://github.com/WhoSowSee/mdv/releases/download/v6.1.1/mdv-v6.1.1-x86_64-unknown-linux-gnu.rpm"
sudo dnf install "./mdv-v6.1.1-x86_64-unknown-linux-gnu.rpm"Downloads and installs the RPM for x86_64; for ARM64, replace x86_64 with aarch64 in both lines. Requires curl, dnf and glibc 2.39 or newer.
nix profile install github:WhoSowSee/mdvRequires Nix with flakes enabled. Supports x86_64 and ARM64 Linux.
git clone https://github.com/WhoSowSee/mdv.git
cd mdv
cargo install --path .Requires Git and Rust 1.95 or newer. Builds and installs mdv from the repository.
Prefer a ready-made binary? Download a release ↗
Open a file, follow changes while you write, or read Markdown from another command.
# Render a Markdown file
mdv README.md# Refresh the view whenever the file changes
mdv --monitor README.md# Browse Markdown files in the current directory
mdv -i# Read Markdown from another command
cat notes.md | mdv# Apply a built-in preset
mdv --preset reader README.mdQuick answers.
Use a terminal with ANSI color support. A Nerd Font is needed only for features that display Nerd Font icons.
Pass --theme nord for a single run, or set theme in your configuration file. Create a configuration with mdv --init-config.
Yes. Pipe Markdown with cat file.md | mdv, or use mdv - to read standard input explicitly.
Yes. mdv is written in Rust, released under the MIT license and developed on GitHub.
Install in one command and start reading Markdown in your terminal.
cargo install mdv