markmaton
markmaton is a lightweight HTML-to-Markdown parser core built for agent workflows.
It solves the last-mile parsing problem in a web pipeline: you already have page HTML,
but it is still too noisy and awkward for downstream agent use. Feed markmaton
HTML from a fetcher or browser layer and get back cleaner Markdown, metadata, links,
images, and quality signals.
[!NOTE]
markmatonis a general parser, not a crawler. Feed it HTML from Playwright,fetch, Firecrawl, or another upstream page-visit tool.
Why it exists
- Raw page HTML is usually not directly useful for downstream agent workflows.
- Modern pages often mix the real content with navigation, overlays, cards, and app shell chrome.
markmatonkeeps that cleanup and conversion step deterministic and separate from crawling.- The project stays narrow by design: no crawling, browser control, network, or LLM features.
- The user-facing entrypoint is a Python CLI and API wrapped around a fast Go engine.
Install
pip
pip install markmaton
uv tool
uv tool install markmaton
[!TIP] The installed package works through plain
pip. Local development usesuvwith Python 3.12.
Quickstart
CLI
markmaton convert \
--html-file page.html \
--url https://example.com/article \
--output-format markdown
To get the full structured response:
markmaton convert \
--html-file page.html \
--url https://example.com/article \
--output-format json
Python API
from markmaton import ConvertOptions, ConvertRequest, convert_html
html = "<article><h1>Hello</h1><p>World</p></article>"
response = convert_html(
ConvertRequest(
html=html,
url="https://example.com/article",
options=ConvertOptions(only_main_content=True),
)
)
print(response.markdown)
print(response.metadata.title)
[!TIP] Pass
urlwhenever you can.markmatonuses it as parsing context for canonical metadata and absolute link resolution.
Output
JSON mode returns markdown, html_clean, metadata, links, images, and quality. See response shape for details.
Project shape
- Go engine:
cmd/markmaton-engine - Python wrapper and CLI:
markmaton/ - Parser fixtures and golden files:
testdata/ - Architecture, benchmark, and release docs:
docs/
Documentation
- Documentation index
- Usage guide
- Packaging layout
- PyPI release path
- Benchmark and regression workflow
- Regression corpus
- AI agent skill — for using
markmatoninside an agent workflow
Development
Set up the local development environment:
uv sync --group dev
Run the core test suites:
uv run python -m unittest discover -s tests -p 'test_*.py'
go test ./...
For a manual end-to-end smoke:
The repo is pinned to:
- Python
3.12via.python-version - a committed
uv.lock
[!IMPORTANT] Automated tests are unit-test-first. Live page visits and benchmarks are manual.
Release notes
Metadata
Release files for markmaton 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| markmaton-0.1.8.tar.gz | 885.9 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| markmaton-0.1.8-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| markmaton-0.1.8-py3-none-manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| markmaton-0.1.8-py3-none-macosx_12_0_x86_64.whl | Python 3 | none | macOS 12.0+ x86-64 | Details |
| markmaton-0.1.8-py3-none-macosx_12_0_arm64.whl | Python 3 | none | macOS 12.0+ ARM64 | Details |
Total release size: 16.3 MB
Release files / markmaton-0.1.8.tar.gz
| Download URL | markmaton-0.1.8.tar.gz |
|---|---|
| Size | 885.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97338138c68de4a7e23ac7c9ab8c847e190ebacbb2bb5c9eb82453a74ad3e147
|
|
BLAKE2b-256 checksum How to use checksums |
e6abf6475cce202b026d3680559c6fa9a0b7233208070cf3c1d85890e157fc6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / markmaton-0.1.8-py3-none-win_amd64.whl
| Download URL | markmaton-0.1.8-py3-none-win_amd64.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
391c7807de01ad48fc046bd9c4997c1b2e3649c19b5bcbdc44b7413668b50d86
|
|
BLAKE2b-256 checksum How to use checksums |
a039d6d128a11d072b1969d887c6712f82c3e866625734a71ac196669d996fe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / markmaton-0.1.8-py3-none-manylinux2014_x86_64.whl
| Download URL | markmaton-0.1.8-py3-none-manylinux2014_x86_64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5c7a22c23639600afc20c2ed430230fb2610a28897feaaf7f6b86f5fb61865f2
|
|
BLAKE2b-256 checksum How to use checksums |
ff818568ec8076d1287966b8452105711dfc407550fbfcd8ae54be50f0c47deb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / markmaton-0.1.8-py3-none-macosx_12_0_x86_64.whl
| Download URL | markmaton-0.1.8-py3-none-macosx_12_0_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
386abb1eef8b47b513b3bd0726971e66be9489c23ed697de04a00df00a58e220
|
|
BLAKE2b-256 checksum How to use checksums |
a6ecb1f5d5050829bea3c32de32d6e2003292ce484f7c2dd7e60c7db1cf1ad66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / markmaton-0.1.8-py3-none-macosx_12_0_arm64.whl
| Download URL | markmaton-0.1.8-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8b22f257beb573ee889cc0d5fb521b200c67e65e86d6763cf3d9431e19a5fac6
|
|
BLAKE2b-256 checksum How to use checksums |
03763318342c8b7bf0f2f0bff1c15c3a80bd2bf72bb03c9a9d844a89a14e7dcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logSecurity for markmaton 0.1.8
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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for markmaton-0.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logA 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.