Skip to main content

markdown-print

A thin wrapper around Rich's markdown renderer with opinionated defaults for terminal display. Rich does all the actual parsing and rendering, this package just configures it with:

  • Nord-darker theme for code blocks with matching inline code styling
  • Left-aligned headings with visible # prefix markers
  • H1 rendered in a panel, other headings styled normally
  • Paged output via less -R by default (preserves ANSI colors)
  • Horizontally centered content within a 100-character width
  • A render_markdown() function for programmatic use

I found myself continually copying this around or making one-off scripts with these defaults, so I packaged it up in a repo so I can install it as needed.

There's intentionally no config files nor are there a lot of options, it's meant to represent how I prefer markdown rendered in the terminal.

Markdown rendered in terminal with mdp

Installation

uv tool install markdown-print

Usage

mdp path/to/file.md

Development

This project requires Python 3.12 and uses uv to manage dependencies.

You can create a virtual environment with all the necessary dependencies by running:

uv sync --all-extras --dev

This will install all necessary dependencies and install this project in editable mode.

You can activate the venv with:

. .venv/bin/activate

Metadata

Release files for markdown-print 0.0.4

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

Source distribution (sdist)

Source distribution for markdown-print 0.0.4
File Size Uploaded
markdown_print-0.0.4.tar.gz 220.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markdown-print 0.0.4
File Interpreter ABI Platform
markdown_print-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 230.9 kB

Release files / markdown_print-0.0.4.tar.gz

Download URL markdown_print-0.0.4.tar.gz
Size 220.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2b7822c71140f5dfd9542419dc99cacdaca0386b6060d60ed02456f5e54271e8
BLAKE2b-256 checksum
How to use checksums
ab2f52fe1083b504f22dcb24720896a780bf3d4289089b507a21c204a276b99c
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 Jun 11, 2026.

Transparency log

Release files / markdown_print-0.0.4-py3-none-any.whl

Download URL markdown_print-0.0.4-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
793f087955ad26e1ba5664e573e92f46b6ed429757494b476461e93e9224c32e
BLAKE2b-256 checksum
How to use checksums
c4fae8978b4616ea3817c61d87658aad6f5f0b05bce2e4769e51bc24c33fc104
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 Jun 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.1

2 release files

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