A Python library for converting Markdown content into structured dictionaries or JSON, commonly used for extracting headings, paragraphs, and metadata. Current version 2.1.2, supports Python >=3.8, maintained by njvack on GitHub.
pip install markdown-to-jsonVerified import paths — ran on the pinned version, not inferred.
Parse Markdown text into a Python dictionary.
Update code that expects a JSON string to handle a dict, or call json.dumps() on the result.
Ensure your Markdown structure uses one paragraph per heading if you need full capture.
Use `import markdown_to_json` then call `markdown_to_json.markdown_to_json()`.
Read the Markdown file into a string first: `with open('file.md') as f: text = f.read()`.No dependency data recorded yet.