6 releases
Uses new Rust 2024
| 0.1.10 | Apr 29, 2026 |
|---|---|
| 0.1.9 | Apr 27, 2026 |
#1848 in Text processing
465KB
12K
SLoC
mdx
Read Markdown in the terminal — with Mermaid diagrams drawn as ASCII art. Like glow, but your graph TD blocks actually render.
Quick start
# Install
curl -fsSL https://raw.githubusercontent.com/aleandros/mdx/main/install.sh | sh
# Render a file
mdx README.md
# Or pipe anything
cat CHANGELOG.md | mdx
The installer detects your OS and architecture and drops the binary in /usr/local/bin (or ~/.local/bin as a fallback).
What you get
- Mermaid as ASCII — flowcharts and sequence diagrams rendered inline, no browser required
- ER diagrams — entity tables with PK/FK attributes, wrapped comments, ASCII crow's foot cardinality, identifying / non-identifying relationships
- Interactive pager — vim-style keybindings, search, tab-through diagrams, expand on demand
- Embeddable —
mdx embedgives you a bounded ANSI stream for other TUIs - Themes — 11 UI themes, syntect-powered syntax highlighting, project- and user-level config
- Watch mode —
mdx -W file.mdre-renders on save
Diagram support is scoped. Today mdx renders
graph/flowchart,sequenceDiagram, anderDiagram. Class, state, gantt, and other types are not yet supported — PRs welcome.
Why
Markdown is everpresent in my day to day workflow, and glow spoils you — until the doc hits a Mermaid block and you're back to squinting at raw source or alt-tabbing to a browser. mdx is the fix: same "just read this thing" ergonomics, but diagrams render where you already are.
Docs
Full CLI reference, config, themes, embedding contract, and mermaid syntax: docs/USAGE.md.
Building from source
git clone https://github.com/aleandros/mdx.git
cd mdx
cargo build --release
# Binary at target/release/mdx
License
MIT — see LICENSE.txt.
Dependencies
~14–29MB
~414K SLoC