Skip to main content

Crate terraphim_markdown_parser

Crate terraphim_markdown_parser 

Source

Re-exports§

pub use chunk::ContentChunk;
pub use chunk::chunk_by_headings;
pub use heading::HeadingNode;
pub use heading::HeadingTree;
pub use heading::MatchStrategy;
pub use heading::SectionConfig;
pub use heading::SectionPattern;
pub use heading::SectionType;
pub use heading::build_heading_tree;
pub use heading::classify_sections;

Modules§

chunk
heading

Structs§

Block
NormalizedMarkdown

Enums§

BlockKind
MarkdownParserError

Constants§

TERRAPHIM_BLOCK_ID_PREFIX

Functions§

blocks_to_documents
Convert extracted blocks into Terraphim Documents so downstream graph tooling can be reused.
ensure_terraphim_block_ids
Ensure every list item and paragraph has a stable Terraphim block id.
extract_first_heading
Extract the first H1 heading from markdown content using AST parsing.
normalize_markdown
Normalize markdown into canonical Terraphim form and return the extracted blocks.