pub fn normalize_markdown(
markdown: &str,
) -> Result<NormalizedMarkdown, MarkdownParserError>Expand description
Normalize markdown into canonical Terraphim form and return the extracted blocks.
Uses an iterative fixed-point loop (up to 4 passes) because inserting inline block IDs into list items can change how the markdown crate re-parses the result, exposing adjacent paragraphs as root-level paragraphs without block IDs. Repeating until the output stabilizes ensures every block is tagged.