Fork me on GitHub

tdoc

a text document toolkit

tdoc
tdoc rendering a document with headings, lists, inline styles, and quotes in the terminal

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.

News

2026-09-06 version 0.12.3

Fixes for the Windows builds and the pager.

2026-08-07 version 0.12.0

Horizontal rules and definition lists.

2026-06-24 version 0.11.0

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.

Features

Getting tdoc

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.

Using 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.

License

tdoc is free software released under the MIT license.