_match_horz() — langchain Function Reference
Architecture documentation for the _match_horz() function in markdown.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 72432933_6f58_8cf9_d8ad_c520c3a69c47["_match_horz()"] 3133ed72_e68b_73f9_8bc5_66c163b1684e["ExperimentalMarkdownSyntaxTextSplitter"] 72432933_6f58_8cf9_d8ad_c520c3a69c47 -->|defined in| 3133ed72_e68b_73f9_8bc5_66c163b1684e 2f2e2507_7953_29a3_211d_b46e309aa6d2["split_text()"] 2f2e2507_7953_29a3_211d_b46e309aa6d2 -->|calls| 72432933_6f58_8cf9_d8ad_c520c3a69c47 style 72432933_6f58_8cf9_d8ad_c520c3a69c47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/text-splitters/langchain_text_splitters/markdown.py lines 477–481
def _match_horz(line: str) -> re.Match[str] | None:
matches = [
re.match(rule, line) for rule in [r"^\*\*\*+\n", r"^---+\n", r"^___+\n"]
]
return next((match for match in matches if match), None)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _match_horz() do?
_match_horz() is a function in the langchain codebase, defined in libs/text-splitters/langchain_text_splitters/markdown.py.
Where is _match_horz() defined?
_match_horz() is defined in libs/text-splitters/langchain_text_splitters/markdown.py at line 477.
What calls _match_horz()?
_match_horz() is called by 1 function(s): split_text.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free