Skip to main content

Markdown Viewer

A simple Flask app to render Markdown files with Mermaid support. It allows browsing and viewing .md files in a directory, with support for relative links between Markdown files and proper image rendering.

Features

  • Lists all .md files in the specified directory
  • Renders Markdown with GitHub-style extensions (fenced code, tables, code highlighting, TOC)
  • Mermaid diagram support with client-side rendering
  • Follows relative links to other .md files
  • Provides back links when navigating between files
  • Serves images and other assets correctly
  • Configurable port and folder via command-line arguments
  • Installable via PyPI

Installation

From PyPI (once published)

pip install markdown-viewer

From Source

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt
    

Usage

As a Script (after PyPI installation)

markdown-viewer --port 8080 --folder /path/to/markdown/files

From Source

python app.py --port 8080 --folder /path/to/markdown/files

Options

  • --port PORT: Port to run the server on (default: 5000)
  • --folder FOLDER: Folder to serve Markdown files from (default: current directory)

Examples

Run on default port 5000, current directory:

markdown-viewer

Run on port 3000, specific folder:

markdown-viewer --port 3000 --folder ./docs

Then visit http://127.0.0.1:PORT/ in your browser.

Publishing to PyPI

This project uses Hatch for packaging. To build and publish:

  1. Install Hatch: pip install hatch
  2. Build: hatch build
  3. Publish: hatch publish (requires PyPI credentials)

Dependencies

  • Flask: Web framework
  • Markdown: Markdown parsing
  • pymdown-extensions: Additional Markdown extensions including Mermaid support

Metadata

Release files for markdown-browse 0.1.1

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-browse 0.1.1
File Size Uploaded Provenance Actions
markdown_browse-0.1.1.tar.gz 3.1 kB Without provenance Details for markdown_browse-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for markdown-browse 0.1.1
File Interpreter ABI Platform Actions
markdown_browse-0.1.1-py3-none-any.whl Python 3 none any Details for markdown_browse-0.1.1-py3-none-any.whl

Total release size: 8.8 kB

Release files / markdown_browse-0.1.1.tar.gz

Download URL markdown_browse-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
06ef1cac4fc99e1dbf119300baeb1b83755d0e045846820a574d62a9ce303257
BLAKE2b-256 checksum
How to use checksums
c750cd6fee91a801bf6b82d77eb5df4b6218da0d2e216a59b94045a605405554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.13.7 HTTPX/0.28.1

Release files / markdown_browse-0.1.1-py3-none-any.whl

Download URL markdown_browse-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b24c8f4f43fd5d56fc8560079c75f6f438fa064d80d09e0f7d54dc89830e3d6
BLAKE2b-256 checksum
How to use checksums
a4ba32c712925577a87788b808ab1a2cf237b59e91faf7587460d6adec9e128a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.13.7 HTTPX/0.28.1

Security for markdown-browse 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1 This release

2 release files No 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