heddle check --only a11y-post
Post Accessibility Check
The post accessibility check reads each post's Markdown and fails headings that skip a level, link text that doesn't say where it goes, and alt text that doesn't say what an image shows. Without it, a post can ship with images a screen reader announces by file name and headings that jump from H2 to H4, so a reader who navigates by headings loses the outline.
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.
Why it exists
A post's own share of WCAG 2.1 AA, on its Markdown (lib/a11y/rules.mjs): headings in order under the page's h1, link text that says where it goes, and alt text that says what each image shows.
A publish gate (lib/publish/gates.mjs DRAFT_CHECKS). The writers run it on every draft, and every round of their revise loops is told what it found. Before a draft is judged, its headings are relevelled in code (relevelHeadings), so only what needs words reaches the reviser.
A vague link's name, and alt text, which the writer never invents (an image's author is asked what it shows). The rest of WCAG, on the built page in a browser, is the a11y check (lib/checks/a11y.mjs), which holds pages to the same lists.
Origin (the reference site, 27 October 2026). Its owner asked that every image have alt text and that "the entire site" meet WCAG 2.1. The audit that day found 68 of 132 post images with alt that said nothing and 15 headings on 8 imported posts that skipped a level; nothing had checked either.
Every published post, whatever its date: WCAG has no grandfather clause.
From lib/checks/a11y-post.mjs in the Heddle repository at 4ccdf8b.
Questions
What does the post accessibility check look for?
A post's own WCAG 2.1 AA share, on its Markdown: headings start at ## and skip no level, link text names where it goes, and every image's alt says what it shows (decorative ones alt="").
How do I run the post accessibility check?
Build the site, then run node bin/heddle.mjs check <site> --only a11y-post 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.