Skip to main content

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 / Down or k / j scroll line by line
  • PageUp / PageDown scroll by page
  • Space or f scrolls forward by page
  • b scrolls backward by page
  • Home jumps to the top
  • End jumps to the bottom
  • t toggles the contents sidebar
  • d opens Textual's theme picker
  • r reloads file-backed documents
  • ? opens the help modal
  • q or Esc quits

Metadata

Release files for mdtv 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdtv 0.1.0
File Size Uploaded Provenance Actions
mdtv-0.1.0.tar.gz 7.5 kB With provenance Details for mdtv-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdtv 0.1.0
File Interpreter ABI Platform Actions
mdtv-0.1.0-py3-none-any.whl Python 3 none any Details for mdtv-0.1.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / mdtv-0.1.0.tar.gz

Download URL mdtv-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c58d3df998640e5ff62f0dff222c1144f88fe28656ad381ec5d9ae595ae18c41
BLAKE2b-256 checksum
How to use checksums
9b9933f739cb21dbca40f444720c5ca8b0b614e1a042944649b51ca081b78008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

Release files / mdtv-0.1.0-py3-none-any.whl

Download URL mdtv-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
229315f10a9e040d62e80514033ee3784e325a18a3d976acddbaea16c0c09d91
BLAKE2b-256 checksum
How to use checksums
0da9f1b03befc45e4e5ebb2779ffa645060604b677b1c99b903d3b71f68da37d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

Security for mdtv 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mdtv-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page