Skip to contentFree site check: see what stops Google and AI assistants reading your site

heddle check --only diagrams

diagrams Check

Diagrams. require, on by default), every ```mermaid block captioned, rendered in the current brand theme and safe to inline; no SVG pasted into a new post in place of one; and, on the built pages, every diagram shipped as a captioned figure with an accessible name, never as a code block, with its labels inside their boxes. Origins (the source site): - 8 October 2026. Agent-drafted posts carried mermaid-cli's default theme as <img>, in a fallback font.

With Heddle on your site it runs on every build, so a page that fails it is fixed before a buyer or a search engine sees it.

one of 46 checksruns offlineruns every build

Why it exists

Diagrams. Every post carries a diagram or an image in its body (site.json diagrams.require, on by default), every ```mermaid block captioned, rendered in the current brand theme and safe to inline; no SVG pasted into a new post in place of one; and, on the built pages, every diagram shipped as a captioned figure with an accessible name, never as a code block, with its labels inside their boxes.

Origins (the source site):

  • 8 October 2026. Agent-drafted posts carried mermaid-cli's default theme as <img>, in a fallback font. Since then a diagram is a mermaid block with a %% caption: line, rendered in the site's theme, and a new post that embeds an SVG fails (scripts/render-diagrams.mjs --check).
  • 16 October 2026: a model's draft on the source site's sister guide passed every gate with a diagram that does not render (A"label" for A["label"]). The gates saw a captioned block and never parsed it.

So every block, in every post and dataset, in scope or not, is parsed by the real Mermaid parser (lib/diagrams/parse.mjs); one that does not parse is a parse finding no baseline or date excuses, and a parser that cannot run fails the check rather than passing it.

  • 3 October 2026. Every diagram on the source site's sister guide had clipped labels in production, because text-wrap. Pretty on <p> reached into mermaid's HTML labels. The markup was identical in the broken and working states; only a browser could see it. So the built pages are opened in Chromium and every label's box is measured against its shape.

The browser half needs Chromium. Without one it says so as a warning. An unmeasured page is reported as unmeasured, never as passed.

From lib/checks/diagrams.mjs in the Heddle repository at 4ccdf8b.

Questions

What does the diagrams check look for?

Mermaid diagrams captioned, parsed by the real Mermaid parser, rendered in the brand theme and safe; no pasted SVG in new posts; a captioned diagram in every new or rewritten post (diagrams.captionedFrom); built figures captioned, named, and their labels not clipped.

How do I run the diagrams check?

Build the site, then run node bin/heddle.mjs check <site> --only diagrams from the Heddle repository.

Ready to get found?
Check your site, talk to us, or see the plans.

Tell us about your business and who buys from you. On a short call we'll show you the searches your buyers make where you don't show up yet, and what the agents would do about them in their first month.