Markdown visualizer for the terminal with interactive features
Project description
mdt
MarkDown in Terminal - Renders a markdown page in the terminal
Welcome to MarkDown in Terminal!
Hi! I'm your first Markdown file that you can open with mdt
. If you want to learn about mdt
, you can clone this repository and open me from the terminal with
mdt README.md
If you want to play with Markdown, you can edit me. Once you have finished with me, you can run me in your terminal.
Project
This project is a Markdown file reader for your terminal.
mdt
is built with Python, and uses the following libraries:
- Mistletoe to parse Markdown files.
- Python Prompt Toolkit for the interactive mode.
- Click to handle commmand line parameters.
- ansiwrap to perform the word wrapping.
Features
mdt
has the following features:
- Interactive mode with dynamic adaptation to the terminal width.
- You can choose your favourite among some available themes.
- You can edit a them of add your own custom theme. Themes are defined with a simple JSON "CSS-like" format.
- Intelligent word wrapping.
In interactive mode you can:
- Open web links in the default browser (requires a graphic sessions to work).
- Follow links to local files forward and backward, allowing a convenient exploration of "wiki-style" files.
Installation
Clone the repository.
If you have administration permissions, run:
pip install mdt-viewer
Options
The following options are available:
$ mdt --help
Usage: mdt [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
gallery Shows a gallery with the available themes.
show Display the specified Markdown file.
themes Lists of available themes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mdt_viewer-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad53445658d06e5ce056f85114603b3c15337c03ba067836c369d593c2359dfd |
|
MD5 | 278b6fd339358ac7f5025f370371f932 |
|
BLAKE2b-256 | 0b2df0e381f1e6637b32906b4cbe859cbadb5797618699b20b6acebe3ad3efe2 |