Published pages only bundle highlighting, Mermaid or charts if the injected block can be removed again.
What's wrong with this entry?
When a published page bundles syntax highlighting, Mermaid diagrams or charts, the publisher now also checks the small setup script it injects alongside the library, and confirms the injected block can be stripped back out of the page afterwards. If it cannot, the injection is refused and the page publishes without it.
- Covers the highlight, Mermaid and chart initializer scripts, each checked before it is written into the page.
- The removability check is what gates the injection; failing it means no injection rather than a failed publish.
hljs_block_unstrippable
Strings lifted out of the shipped bundle, so the claim above can be checked against them.