pub fn strip_invisible_document_parts(markdown: &str) -> String
Strip a leading frontmatter block and all <script>…</script> blocks, then trim. Mirrors the original’s three non-greedy regex replacements.
<script>…</script>