A LangChain integration for jostack-mdparse
Project description
langchain-jostack-mdparse
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_jostack_mdparse-0.4.0.tar.gz.
File metadata
- Download URL: langchain_jostack_mdparse-0.4.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db1f6fe1a6723085155808cf7e6bc4911c6b7c111d5c1fa6d9c65a9e62fcc162
|
|
| MD5 |
ee58a50d93b791a1e3738a41631f89a1
|
|
| BLAKE2b-256 |
4bfdaf623dc4bbe505b585d17247d2c3168974a3f50cae06728c8a942942876a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_jostack_mdparse-0.4.0.tar.gz -
Subject digest:
db1f6fe1a6723085155808cf7e6bc4911c6b7c111d5c1fa6d9c65a9e62fcc162 - Sigstore transparency entry: 1249529209
- Sigstore integration time:
-
Permalink:
hyunhee-jo/langchain-jostack-mdparse@282ac642fb6588b4f9d6ba41c59e090a97037cd8 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/hyunhee-jo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@282ac642fb6588b4f9d6ba41c59e090a97037cd8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file langchain_jostack_mdparse-0.4.0-py3-none-any.whl.
File metadata
- Download URL: langchain_jostack_mdparse-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e3f974489f316453b15da37ce76e1783f7615616b0f499ec26f591db1f2c8ea
|
|
| MD5 |
f4abd94d24275ae719752bf84ab92789
|
|
| BLAKE2b-256 |
8288400de1d089d1aa850d82d14ba357e8879d83ca95c2fbc4df0ba4afe186e5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_jostack_mdparse-0.4.0-py3-none-any.whl -
Subject digest:
2e3f974489f316453b15da37ce76e1783f7615616b0f499ec26f591db1f2c8ea - Sigstore transparency entry: 1249529290
- Sigstore integration time:
-
Permalink:
hyunhee-jo/langchain-jostack-mdparse@282ac642fb6588b4f9d6ba41c59e090a97037cd8 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/hyunhee-jo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@282ac642fb6588b4f9d6ba41c59e090a97037cd8 -
Trigger Event:
push
-
Statement type: