Expand description
Parser module for markdown documents.
Provides functions to parse markdown files and content into structured documents. Markdown parsing and document structure extraction.
This module provides functions to parse markdown files and extract their heading structure into a hierarchical tree.
All parsing is delegated to turbovault-parser for unified, code-block-aware
OFM (Obsidian Flavored Markdown) support.
Re-exports§
pub use builder::build_json_output;pub use links::Link;pub use links::LinkTarget;pub use links::extract_links;pub use output::DocumentOutput;pub use output::Section;pub use utils::strip_markdown_inline;
Modules§
- builder
- Build nested JSON output from document structure
- content
- Content parsing for markdown sections
- links
- Link detection and parsing from markdown content.
- output
- JSON output types for nested, markdown-intelligent structure
- utils
- Utility functions for markdown parsing.
Structs§
- Document
- A markdown document with its content and structure.
- Heading
- A heading in a markdown document.
- Heading
Node - A node in the heading tree.
Enums§
- Block
- A parsed content block in a markdown document.
- Inline
Element - An inline element within a block.
Functions§
- parse_
file - Parse a markdown file and extract its structure.
- parse_
markdown - Parse markdown content and extract headings with byte offsets.