Skip to main content

A LangChain integration for jostack-mdparse

Project description

langchain-jostack-mdparse

CI License Python 3.10+

A LangChain Document Loader for jostack-mdparse.

Installation

pip install langchain-jostack-mdparse

Quick Start

from langchain_jostack_mdparse import MarkdownExtractLoader

# Load a single file
loader = MarkdownExtractLoader("README.md")
docs = loader.load()

# Load with options
loader = MarkdownExtractLoader(
    "docs/guide.md",
    heading_level="1,2",
    strip_html=True,
    split_sections=True,
)
docs = loader.load()

# Load multiple files
loader = MarkdownExtractLoader(["a.md", "b.md"])
docs = loader.load()

Parameters Reference

Parameter Type Default Description
file_path str | Path | List (Required) Path to Markdown file(s)
split_sections bool True Split output into per-section Documents

| format | str | "text" | Output format. Values: json, text, html. Default: json | | quiet | bool | False | Suppress console logging output | | heading_level | str | None | Filter by heading levels (comma-separated, e.g. '1,2,3'). Default: all levels | | sections | str | None | Extract only sections matching the given heading text (comma-separated). Case-insensitive substring match | | include_frontmatter | bool | True | Include YAML/TOML frontmatter in output. Default: true | | strip_html | bool | False | Strip inline HTML tags from Markdown content | | include_code_blocks | bool | True | Include fenced code blocks in output. Default: true | | include_toc | bool | False | Add a generated table of contents to the output | | flatten_lists | bool | False | Flatten nested lists into a single level | | section_separator | str | None | Separator between sections in text output. Use %section-title% for heading text. Default: none | | normalize_links | bool | False | Convert relative links to absolute using the source file path | | detect_tables | bool | False | Detect and extract Markdown tables as structured data |

Development

pip install -e .
make test
make lint

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_jostack_mdparse-0.4.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_jostack_mdparse-0.4.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_jostack_mdparse-0.4.0.tar.gz.

File metadata

File hashes

Hashes for langchain_jostack_mdparse-0.4.0.tar.gz
Algorithm Hash digest
SHA256 db1f6fe1a6723085155808cf7e6bc4911c6b7c111d5c1fa6d9c65a9e62fcc162
MD5 ee58a50d93b791a1e3738a41631f89a1
BLAKE2b-256 4bfdaf623dc4bbe505b585d17247d2c3168974a3f50cae06728c8a942942876a

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_jostack_mdparse-0.4.0.tar.gz:

Publisher: release.yml on hyunhee-jo/langchain-jostack-mdparse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_jostack_mdparse-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_jostack_mdparse-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e3f974489f316453b15da37ce76e1783f7615616b0f499ec26f591db1f2c8ea
MD5 f4abd94d24275ae719752bf84ab92789
BLAKE2b-256 8288400de1d089d1aa850d82d14ba357e8879d83ca95c2fbc4df0ba4afe186e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_jostack_mdparse-0.4.0-py3-none-any.whl:

Publisher: release.yml on hyunhee-jo/langchain-jostack-mdparse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page