Published pages with diagrams are far smaller, loading the diagram library from the host.
What's wrong with this entry?
Publishing a page with Mermaid diagrams no longer embeds the whole diagram library in the HTML. The page instead references /_runtime/mermaid-11.16.1.min.js served by the artifact host, so published pages are far smaller but now depend on the host serving that path.
- The HTML validator, which otherwise rejects any script with a
src, was relaxed to permit exactly that one bare tag; anything else still fails with "External scripts are not allowed". - The diagram bootstrap now returns immediately if the library is missing, so a page degrades quietly rather than erroring when the host does not serve it.
- The oversize-publish warning now mentions only "the inline highlighting runtime included"; the diagram runtime is no longer part of the size story.
/_runtime/mermaid-11.16.1.min.js
Strings lifted out of the shipped bundle, so the claim above can be checked against them.