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: json, text, html | | quiet | bool | False | Suppress console logging | | 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 | | 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 | | normalize_links | bool | False | Convert relative links to absolute |

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.1.0.tar.gz (16.6 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.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for langchain_jostack_mdparse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5def6ff65688f098f384bfaae7d09e5e873c686f38dc8e5701b78ed6fed0cae
MD5 fe7511087cb83c45e371399f8eba14c4
BLAKE2b-256 c76f436096fa81aab0bece0f50c7f2ce109e8b6a9e65c1ccce37d8f6eb38ee3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_jostack_mdparse-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_jostack_mdparse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 426387d505639777fc94f8945d919934457fa12e794ed803bac3df2b14b2d0e9
MD5 de77b3525dd93b80ed21af44fb69848a
BLAKE2b-256 50055b58456d528e2f583d27657894f3de6bcf29822a903f5ae9fb0b70a2607f

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_jostack_mdparse-0.1.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