a text document toolkit

tdoc is a command-line tool and Rust library for reading, rendering, and converting text documents. Point it at a Markdown, HTML, Gemini, or FTML file — or a URL — and it shows it nicely formatted in your terminal, or converts it into any of the other formats.
Fixes for the Windows builds and the pager.
Horizontal rules and definition lists.
Tables, a --watch mode that refreshes the view (or the converted file) whenever the input changes, a stylesheet for HTML export, and the new doc! macro.
Renders documents in the terminal: styled text, clickable links, lists, checklists, quotes, code blocks, and tables
Converts between Markdown, Gemini, FTML, HTML, and plain text
Reads from files, URLs, or stdin
Watch mode for live previews
A Rust library with a single document model for all formats — it powers Pure and Elma
Current version is 0.12.3. If you have Rust installed, do a cargo install tdoc. Pre-built binaries for Linux, macOS, and Windows are on the releases page. To use the library, add it with cargo add tdoc — the API docs are on docs.rs.
The sources are available via git clone https://github.com/roblillack/tdoc.
Run tdoc notes.md to view a document, or tdoc https://example.com/page.html to view one from the web. To convert, name the output file: tdoc paper.md --output paper.html — the extension picks the format.
tdoc is free software released under the MIT license.
tack.©2002–2026 Robert Lillack.