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

heddle check --only diagram-text

Diagram Text Check

The diagram-text check fails a post whose diagram shows a number, a limit or a name the text beside it never says, or whose caption names what's drawn instead of its point. Without it, the one fact a buyer needed, like an order that's cancelled after 48 hours, can live only inside a diagram label that search engines and AI answers never read. No fact stranded in a diagram, and no caption that says nothing. mjs.

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

No fact stranded in a diagram, and no caption that says nothing. The editorial pack's visuals.md ("Every fact lives in the text", "Captions state the point"), held by lib/editorial/lints/diagram-text.mjs. Every number, quoted value, condition word and name a Mermaid label shows is in its section's text, and every caption is a sentence of at least eight words with a verb that states what happens.

The diagrams check holds that a diagram parses, renders and has a caption; this one holds what the caption and the labels say. Posts published before the rule are recorded by their exact findings (lib/editorial/post-lint.mjs), and every writer's vet() holds a draft to the same rule. A post marked authorWritten. True (a person's own words, published as written) is not read.

From lib/checks/diagram-text.mjs in the Heddle repository at 4ccdf8b.

Questions

What does the diagram text check look for?

Every fact a diagram's labels show is in its section's text, and every caption is a sentence stating the diagram's point.

How do I run the diagram text check?

Build the site, then run node bin/heddle.mjs check <site> --only diagram-text 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.