Skip to main content

strip_invisible_document_parts

Function strip_invisible_document_parts 

Source
pub fn strip_invisible_document_parts(markdown: &str) -> String
Expand description

Strip a leading frontmatter block and all <script>…</script> blocks, then trim. Mirrors the original’s three non-greedy regex replacements.