Opens an interactive TUI markdown viewer with rendered Markdown with auto scrollbars (vertical + horizontal), a StatusBar with Quit, Content Width control, line count, file size, status, and spinner, and a File selector dropdown when viewing multiple files.
When run with the --print option, it renders the markdown to the terminal and exits, without launching the interactive viewer.
Wildcards are supported: mdv *.md, mdv docs/*.md.
Built with Terminal.Gui.
- Headings (
#,##, etc.) - Paragraphs and line breaks
- Emphasis (
*italic*,**bold**,~~strikethrough~~) - Links (
[text](url)) - Images (
) - Code blocks (fenced with
```) - Inline code (
`code`) - Blockquotes (
> quote) - Lists (ordered and unordered)
- Tables
- Horizontal rules (
---) - Syntax highlighting for code blocks (using ColorCode with various themes)
dotnet tool install -g Terminal.Gui.mdv
mdv <file.md> [file2.md ...] # Full-screen interactive mode (default)
mdv --print <file.md> [file2.md ...] # Print mode: renders to terminal and exits
mdv -t <ThemeName> <file.md> [file2.md ...] # Specify syntax-highlighting theme
mdv --help # Show this help message (Renders this README as formatted markdown)
# View a single file in full-screen mode (default)
mdv README.md# Print rendered markdown to terminal and exit
mdv --print README.md# View multiple files with a file selector dropdown
mdv *.md# Print with a specific theme
mdv -p -t Monokai README.mdAtomOneDark, AtomOneLight, Dark, DarkPlus (Default), DimmedMonokai, Dracula, HighContrastDark, HighContrastLight, KimbieDark, Light, LightPlus, Monokai, OneDark, QuietLight, Red, SolarizedDark, SolarizedLight, TomorrowNightBlue, VisualStudioDark, VisualStudioLight
dotnet builddotnet run -- README.md