| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple, original HTML-to-Markdown converter for webpages, local .html files, and pasted HTML. Run it with no arguments, paste a URL, and it writes a clean .md file for you.
From the plugin root:
python html2md.pyThen paste the webpage URL or local HTML file path. The Markdown file will be generated in the current directory.
On Windows, if python points to Python 2, use:
html2md.cmdYou can also run the script directly:
python scripts/html_to_markdown.py "https://example.com" --output example.mdOr install it locally and use the html2md command:
python -m pip install -e .
html2mdConvert a local file:
python html2md.py examples/sample.html --output sample.mdKeep the full page body instead of automatic article extraction:
python html2md.py "https://en.wikipedia.org/wiki/GitHub" --output github-full.md --content-mode fullKeep more visible text with simpler formatting:
python html2md.py "https://en.wikipedia.org/wiki/GitHub" --output github.txt.md --plain-textConvert only a selected part of the page:
python html2md.py page.html --output article.md --include-selector article --exclude-selector nav,footer,.adBatch convert local HTML files:
python html2md.py --input "pages/*.html" --output-dir mdIf a remote webpage times out, increase the timeout and retry count:
python html2md.py "https://en.wikipedia.org/wiki/GitHub" --output github.md --timeout 180 --retries 5Convert pasted HTML:
Get-Content page.html | py -3 scripts/html_to_markdown.py - --output page.mdRun tests:
py -3 -m unittest discover -s testsRun the local benchmark:
py -3 benchmarks/bench_converter.pyhtml-2-markdown/
html2md.py # Friendly Python entrypoint
html2md.cmd # Windows launcher
html2md # Unix-like launcher
scripts/html_to_markdown.py # Core converter
tests/ # Unit tests
benchmarks/ # Local benchmark
examples/ # Sample input and output
.github/workflows/ # GitHub Actions tests
.codex-plugin/ # Optional Codex plugin metadata
This repository is already shaped as a Codex plugin. After cloning it, install or load it through your Codex plugin workflow.
Created and maintained by Ryan Zhang.
Open-sourcing this plugin is okay. For the safest public release:
MIT
| Back | FazBrowse Home | New Git URL |