gh-md-to-html
Feature-rich Github-flavored Markdown to html python and command line interface.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is stable and has no known vulnerabilities, with low install friction. However, it is dormant—no updates in 788 days—so compatibility with current versions of its dependencies is unverified. Install if you need GitHub-flavored markdown conversion with image optimization and formula support and can tolerate potential drift; avoid if you require active maintenance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Offline conversion requires LaTeX and dvisvgm installed; PDF export requires pdfkit.
- Online conversion requires internet access to GitHub's Markdown API.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
LICENSE.txt (unclear) — License treatment is unclear—the package includes a LICENSE.txt file but provides no SPDX identifier. Review the license file directly before use in proprietary or restricted contexts.
last release 2024-06-17 (788 days) · last repo commit 2024-06-17 · 117 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,396 downloads/mo, #10,243 on PyPI
Alternatives
Verify before relying
pip install gh-md-to-html
from gh_md_to_html import main
main(['input.md', 'output.html'])- Whether the package's offline conversion mode truly matches GitHub's current markdown behavior after 788 days of dormancy.
- Compatibility with modern versions of Pillow, beautifulsoup4, and requests given the long time since last release.
- Whether formula rendering via Codecogs EqnEditor still works reliably without documented API changes.
What it is and what it does
gh-md-to-html is a Python module and command-line tool that converts Markdown to HTML, primarily targeting GitHub-flavored Markdown. It can use GitHub's online Markdown API (requiring internet) or operate offline with a mode designed to closely imitate GitHub's behavior. The package extends any underlying markdown converter with features like image downloading and optimization, LaTeX formula support, PDF export, emoji shortcode expansion, table-of-contents generation, and GitHub-style CSS styling.
The tool is designed mainly for static site generation from markdown files—particularly useful for GitHub Actions workflows or static site builders—but works for any markdown-to-HTML task. It handles non-ASCII characters, manages image caching and responsive sizing via srcset, and creates root-relative links. Dependencies include Pillow, beautifulsoup4, emoji, requests, shellescape, and webcolors for image processing, HTML parsing, and styling.
Use it for
- Convert README.md files to standalone HTML pages for static documentation sites or GitHub Pages.
- Batch convert markdown homework or assignment files to PDF with formula support and image embedding.
- Generate styled HTML from markdown in CI/CD pipelines using offline mode without external service calls.
- Optimize and cache images referenced in markdown while maintaining correct relative links in output HTML.
- Create table-of-contents-enabled HTML documents from markdown with LaTeX formula rendering.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is stable and has no known vulnerabilities, with low install friction. However, it is dormant—no updates in 788 days—so compatibility with current versions of its dependencies is unverified. Install if you need GitHub-flavored markdown conversion with image optimization and formula support and can tolerate potential drift; avoid if you require active maintenance.
Install
gh-md-to-html on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. The package is dormant (788 days since last release) but remains functional; maintenance status suggests no active development, though the repository is not archived.
Offline conversion requires LaTeX and dvisvgm installed; PDF export requires pdfkit. Online conversion requires internet access to GitHub's Markdown API.
License in practice
License treatment is unclear—the package includes a LICENSE.txt file but provides no SPDX identifier. Review the license file directly before use in proprietary or restricted contexts.
Quickstart
pip install gh-md-to-html
from gh_md_to_html import main
main(['input.md', 'output.html'])
Verify before relying
- Whether the package's offline conversion mode truly matches GitHub's current markdown behavior after 788 days of dormancy.
- Compatibility with modern versions of Pillow, beautifulsoup4, and requests given the long time since last release.
- Whether formula rendering via Codecogs EqnEditor still works reliably without documented API changes.
Package facts
| License | LICENSE.txt unclear |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesPillowbeautifulsoup4emojirequestsshellescapewebcolors |
| Maintenance | Dormant 788 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,396 / month, #10,243 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3 |
Evidence: gh_md_to_html-1.21.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “offline markdown conversion”
- gh-md-to-htmlConverts GitHub-flavored Markdown to HTML with support for offline…
- mineruConverts PDF, DOCX, PPTX, XLSX, images, and web pages into structured…
- markitdown-mcpExposes MarkItDown's document-to-markdown conversion as an MCP…
Give your agent the search over MCP, or paste the wish link into any chat.
More HTML packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.
Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.
Install it if you need to parse Markdown in Python.
See also py-gfm · md2pdf · multimark · markdown-pdf · imgkit · wkhtmltopdf · cmarkgfm · nbconvert · markdown-to-confluence · markdownify