utils
Class info¶
🛈 DocStrings¶
Base markdown chunking implementation.
assign_images
¶
Find images referenced in content and assign them to chunk.
Returns:
| Type | Description |
|---|---|
tuple[str, list[Image]]
|
Tuple of (content, chunk_images) |
Source code in src/docler/chunkers/markdown_chunker/utils.py
split_by_headers
¶
Split text by markdown headers.
Returns:
| Type | Description |
|---|---|
Iterator[tuple[str, str, int]]
|
Iterator of (header, content, level) tuples |