Skip to main content

compact_markdown

Function compact_markdown 

Source
pub fn compact_markdown(content: &str) -> Option<String>
Expand description

Compact Markdown while preserving all headings, whole fenced code blocks, and high-signal details. Returns None when the document is too small, not markdown-shaped, or compaction would not actually shrink it.