A friendly, polished terminal Markdown viewer.
Project description
mdtv
mdtv is a friendly terminal Markdown viewer built with Typer and Textual.
Install
uv sync
Use
Open a file:
uv run mdtv README.md
Read from stdin:
cat README.md | uv run mdtv
Hide the contents sidebar:
uv run mdtv README.md --no-toc
The sidebar is closed by default. Press t to open it on the right side.
Start with a Textual theme:
uv run mdtv README.md --theme nord
Built-in themes include textual-dark, textual-light, nord, gruvbox,
catppuccin-mocha, dracula, tokyo-night, monokai, flexoki,
catppuccin-latte, solarized-light, solarized-dark, rose-pine,
atom-one-dark, and atom-one-light.
Preferences
mdtv stores minimal preferences in ~/.mdtv.json:
{
"theme": "textual-dark"
}
Selecting a theme with d updates that file. Sidebar visibility is session-only
and always starts closed unless --toc is passed.
Development
uv run ruff format .
uv run ruff check .
uv run pytest
Keys
Up/Downork/jscroll line by linePageUp/PageDownscroll by pageSpaceorfscrolls forward by pagebscrolls backward by pageHomejumps to the topEndjumps to the bottomttoggles the contents sidebardopens Textual's theme pickerrreloads file-backed documents?opens the help modalqorEscquits
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdtv-0.1.0.tar.gz.
File metadata
- Download URL: mdtv-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58d3df998640e5ff62f0dff222c1144f88fe28656ad381ec5d9ae595ae18c41
|
|
| MD5 |
c048b43a7da9095185da9675c157d172
|
|
| BLAKE2b-256 |
9b9933f739cb21dbca40f444720c5ca8b0b614e1a042944649b51ca081b78008
|
Provenance
The following attestation bundles were made for mdtv-0.1.0.tar.gz:
Publisher:
workflow.yml on apageadev/mdtv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mdtv-0.1.0.tar.gz -
Subject digest:
c58d3df998640e5ff62f0dff222c1144f88fe28656ad381ec5d9ae595ae18c41 - Sigstore transparency entry: 1429626017
- Sigstore integration time:
-
Permalink:
apageadev/mdtv@d6bb9806c55a044c6879efc04db14f9efbc539d3 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/apageadev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@d6bb9806c55a044c6879efc04db14f9efbc539d3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mdtv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mdtv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
229315f10a9e040d62e80514033ee3784e325a18a3d976acddbaea16c0c09d91
|
|
| MD5 |
f2980955c8fd3f7cd0995850cf5c880d
|
|
| BLAKE2b-256 |
0da9f1b03befc45e4e5ebb2779ffa645060604b677b1c99b903d3b71f68da37d
|
Provenance
The following attestation bundles were made for mdtv-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on apageadev/mdtv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mdtv-0.1.0-py3-none-any.whl -
Subject digest:
229315f10a9e040d62e80514033ee3784e325a18a3d976acddbaea16c0c09d91 - Sigstore transparency entry: 1429626025
- Sigstore integration time:
-
Permalink:
apageadev/mdtv@d6bb9806c55a044c6879efc04db14f9efbc539d3 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/apageadev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@d6bb9806c55a044c6879efc04db14f9efbc539d3 -
Trigger Event:
release
-
Statement type: