Skip to main content

mystrotamer-tohtml

A professional CLI tool to convert Markdown files into a clean, modern, and print-friendly HTML document — with built-in Dark/Light mode, RTL support, and code copy buttons.


✨ Features

  • 🖨️ Print-friendly layout (optimized for PDFs and paper)
  • 🌙 Dark / Light mode with System preference
  • 🌍 Automatic RTL support for Arabic, Persian, Hebrew, and Urdu
  • 📋 Copy buttons on all code blocks
  • 🎨 Clean typography for headings, tables, and blockquotes
  • ⚙️ Single self-contained HTML output (no external assets)

📦 Installation

From PyPI (recommended)

pip install mystrotamer-tohtml

Local / Development

pip install -e .

🚀 Usage

Basic conversion

tohtml README.md

Generates:

README.html

Specify output file

tohtml README.md -o output.html

Arabic / RTL documents

tohtml README.md --lang ar

RTL is applied automatically based on the language.


Disable GUI file picker

(useful on servers or minimal Linux)

tohtml --no-gui README.md

⚙️ Command-line Options

Option Description
-o, --output Output HTML file path
--title Custom document title
--lang HTML language (ar, en, fa, he, …)
--footer-left Custom footer (left)
--footer-right Custom footer (right)
--no-gui Disable file picker dialog

🖥️ Notes

  • When opening the generated HTML via file://, some browsers may restrict localStorage.
  • For best results, serve the file locally:
python -m http.server 8000

Then open:

http://localhost:8000/yourfile.html

📄 License

MIT License © Tamer Hamad Faour


👤 Author

Tamer Hamad Faour
GitHub: https://github.com/TamerOnLine

Metadata

Release files for mystrotamer-tohtml 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 mystrotamer-tohtml 0.1.0
File Size Uploaded Provenance
mystrotamer_tohtml-0.1.0.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.4 kB

Release files / mystrotamer_tohtml-0.1.0.tar.gz

Download URL mystrotamer_tohtml-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
31c2b9f4a0a0850771e1911b948db14fc786010da16342ce68d07eead4bbca6c
BLAKE2b-256 checksum
How to use checksums
3517c14f37c96ea0f5141430ba8294c69209791551aee0369993cd2ac95c5d61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

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

Download URL mystrotamer_tohtml-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8d0b2f96fe1aebdd0d212431fd3c45166335ecce4f7f2b0b8b3f5f3028e015c
BLAKE2b-256 checksum
How to use checksums
c63d0695c82912708b9ff5bb00c97f8ecbb550e44efd76c18c12b9215244209b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for mystrotamer-tohtml 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.

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.0 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