Skip to main content

jostack-mdparse

CI License-Apache_2.0 Python 3.10+

Markdown file parser and structured extraction tool (CLI + Python API).

Installation

pip install jostack-mdparse

Quick Start

CLI

# Extract as JSON
jostack-mdparse extract README.md -f json

# Extract specific sections
jostack-mdparse extract docs/ -s "Installation,Usage" -f text

# Print table of contents
jostack-mdparse toc README.md

# Print frontmatter metadata
jostack-mdparse meta blog-post.md

Python API

from jostack_mdparse import extract

# Basic extraction
result = extract("README.md", format="json")

# Filter by heading level
result = extract("docs/guide.md", heading_level="1,2", format="text")

# Extract specific sections
result = extract("README.md", sections="Usage", strip_html=True)

Commands

Command Description
extract Parse Markdown and output structured data (JSON, text, HTML)
toc Print the table of contents (heading tree)
meta Print frontmatter metadata as JSON

Parameters

Parameter Type Default Description
output-dir str None Directory where output files are written
format str "json" Output format: json, text, html
quiet bool False Suppress console logging output
heading-level str None Filter by heading levels (comma-separated)
sections str None Extract sections by heading text (comma-separated)
include-frontmatter bool True Include YAML/TOML frontmatter in output
strip-html bool False Strip inline HTML tags
include-code-blocks bool True Include fenced code blocks
include-toc bool False Add generated table of contents
flatten-lists bool False Flatten nested lists
section-separator str None Separator between sections in text output
normalize-links bool False Convert relative links to absolute

Development

# Install in development mode
pip install -e .

# Run tests
make test

# Run linting
make lint

# Format code
make format

License

MIT

Metadata

Release files for jostack-mdparse 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jostack-mdparse 0.4.0
File Size Uploaded
jostack_mdparse-0.4.0.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jostack-mdparse 0.4.0
File Interpreter ABI Platform
jostack_mdparse-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 kB

Release files / jostack_mdparse-0.4.0.tar.gz

Download URL jostack_mdparse-0.4.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
da98d383de68e351d44ca7f0b6815b933cebd79f1006b4966bacfd6e687e48c1
BLAKE2b-256 checksum
How to use checksums
004cb3a2017a70c0bd0e3581be5051dbe596096ef1ae1ab15db04037597fee6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 7, 2026.

Transparency log

Release files / jostack_mdparse-0.4.0-py3-none-any.whl

Download URL jostack_mdparse-0.4.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68dac4ab724a256669fdd9d69e4e032b8a3c19867a944c43370cd50df3c5643e
BLAKE2b-256 checksum
How to use checksums
6180838a614eb7ce6f5c1aa7f6d0c2482805f6d0116cc1f6c45cbee2d0b61c39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Apr 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page