Strip a leading YAML front-matter block, the first top-level H1 (it is replaced by the injected ## section heading), trailing template boilerplate footers (โ End of template โ, <!-- End of artifact -->, Document control, Generated by โฆ), AI self-audit ## Pass 2 โฆ sections (which carry process metadata, not article content), and leading admin-byline paragraphs (**Author**: โฆ ยท **Run ID**: โฆ).
Also performs three reader-facing HTML-quality projections โ see the module-level JSDoc above โ applied after the structural strips so they never remove signal.
Strip a leading YAML front-matter block, the first top-level H1 (it is replaced by the injected
##section heading), trailing template boilerplate footers (โ End of template โ,<!-- End of artifact -->,Document control,Generated by โฆ), AI self-audit## Pass 2 โฆsections (which carry process metadata, not article content), and leading admin-byline paragraphs (**Author**: โฆ ยท **Run ID**: โฆ).Also performs three reader-facing HTML-quality projections โ see the module-level JSDoc above โ applied after the structural strips so they never remove signal.