{"id":27951,"library":"mdka","title":"mdka","description":"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.","status":"active","version":"2.1.5","language":"python","source_language":"en","source_url":"https://github.com/kachick/mdka","tags":["html-to-markdown","rust","converter","markdown"],"install":[{"cmd":"pip install mdka","lang":"bash","label":"default"}],"dependencies":[],"imports":[{"note":"The library exposes a single function 'from_html' directly under the module.","symbol":"mdka","correct":"import mdka"},{"note":"The function is called 'from_html', not 'mdka_to_md' or 'convert'.","wrong":"from mdka import mdka_to_md","symbol":"from_html","correct":"from mdka import from_html"}],"quickstart":{"code":"import mdka\n\nhtml = \"<h1>Hello</h1><p>World</p>\"\nmd = mdka.from_html(html)\nprint(md)","lang":"python","description":"Converts HTML string to Markdown using the from_html function."},"warnings":[{"fix":"Use incremental processing or another tool if memory is a concern.","message":"mdka may not handle very large HTML strings efficiently; for huge documents consider streaming or chunking.","severity":"gotcha","affected_versions":"all"},{"fix":"Read the file content first: with open('file.html') as f: html = f.read()","message":"The 'from_html' function expects a string, not a file object. Do not pass open files.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Uninstall and reinstall: pip uninstall mdka && pip install mdka","cause":"Installation issue or incorrect import (e.g., importing a different module named 'mdka').","error":"AttributeError: module 'mdka' has no attribute 'from_html'"},{"fix":"Install with: pip install mdka","cause":"mdka is not installed or Python environment issue.","error":"ImportError: No module named 'mdka'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}