Skip to content

Installation

mdt is written in Rust. To install it, you need the Rust toolchain (Cargo and rustc). If you don’t have it yet, install it from rustup.rs:

Terminal window
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

The easiest way to install mdt is from crates.io:

Terminal window
cargo install mdtui

This downloads, compiles, and installs the mdt binary into your Cargo bin directory (typically ~/.cargo/bin/).

Clone the repository and build in release mode:

Terminal window
git clone https://github.com/pimalaya/markdown-tui.git
cd markdown-tui
cargo build --release

The compiled binary will be at target/release/mdt. You can copy it to a directory on your PATH:

Terminal window
cp target/release/mdt ~/.local/bin/

Confirm mdt is installed and accessible:

Terminal window
mdt --help

You should see usage information and available flags. To get started, run mdt in any directory containing markdown files:

Terminal window
mdt