Skip to main content

A beautiful Markdown viewer for terminal with code execution support

Project description

MDX - Markdown Viewer for Terminal

PyPI License Python

A beautiful Markdown viewer for terminal with code execution support.

Features

  • 🎨 Beautiful syntax highlighting with multiple themes
  • 📑 Table of contents navigation
  • ⚡ Execute code blocks directly (bash, python)
  • 🔍 Search within documents
  • 📖 Multiple rendering modes

Installation

pip install mdx

Usage

# View a markdown file
mdx README.md

# Show table of contents
mdx README.md --toc

# Execute code blocks
mdx README.md --execute

# Jump to specific line
mdx README.md --line 100

# Use different theme
mdx README.md --theme dracula

Options

Option Description
-e, --execute Execute code blocks
-t, --toc Show table of contents
-l, --line Jump to specific line
-m, --theme Syntax highlighting theme

Themes

Available syntax highlighting themes:

  • monokai (default)
  • dracula
  • github-dark
  • nord
  • solarized-dark

Example

# Read documentation
mdx docs/linux-0.11-filesystem-analysis.md --toc

# Execute tutorial code blocks
mdx docs/tutorial.md --execute

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdx_viewer-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdx_viewer-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file mdx_viewer-0.1.0.tar.gz.

File metadata

  • Download URL: mdx_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mdx_viewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cfe244eb911d4a1f07784790ab51135012bee7192f81295b4d5ebdb893852ffb
MD5 adf390018c8573955e853513e0af1c81
BLAKE2b-256 53de5a0b605be7b82712e06caab48187fcc51ff793f470f2839536f3b375a36b

See more details on using hashes here.

File details

Details for the file mdx_viewer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mdx_viewer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mdx_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9cd065cfa1927eb7bca9f50903df14686475fd828ff68a667a87d727ab2cd05
MD5 ebc6796e2fb9a268f527e84ab3457b9c
BLAKE2b-256 872cb9b2a05a6b1463d1593f0434b5c4809d58d397723c05cae2fef3fd2dc012

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page