Registry / serialization / mdka
library2.1.5pypypi✓ verified 84d ago

A fast HTML to Markdown converter written in Rust, balancing conversion quality with runtime efficiency. Current version 2.1.5, requires Python >=3.8. Updated periodically on PyPI.

pip install mdka
INSTALL
IMPORT
SIG · MDKA
M
mdka
serializationpythonv2.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mdka
import mdka
The library exposes a single function 'from_html' directly under the module.
from_html
from mdka import from_html
from mdka import mdka_to_md
The function is called 'from_html', not 'mdka_to_md' or 'convert'.

Converts HTML string to Markdown using the from_html function.

import mdka html = "<h1>Hello</h1><p>World</p>" md = mdka.from_html(html) print(md)
mdka --version
Debug
Known issues
gotchamdka may not handle very large HTML strings efficiently; for huge documents consider streaming or chunking.
fix
Use incremental processing or another tool if memory is a concern.
affects: all
gotchaThe 'from_html' function expects a string, not a file object. Do not pass open files.
fix
Read the file content first: with open('file.html') as f: html = f.read()
affects: all
Errors
Common errors & fixes
AttributeError: module 'mdka' has no attribute 'from_html'
Installation issue or incorrect import (e.g., importing a different module named 'mdka').
fix
Uninstall and reinstall: pip uninstall mdka && pip install mdka
ImportError: No module named 'mdka'
mdka is not installed or Python environment issue.
fix
Install with: pip install mdka
Upgrade
Version history
2.1.5latest on PyPI · released Apr 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
mdka — pip install mdka · libregistry