Markdown Scanner reference: Domain 8: Anchor Link Validation (WCAG 2.4.4)
In the kit: .github/skills/markdown-scanner/references/domain-8-anchor-link-validation-wcag-2-4-4.md.
-
This file as plain text, at
https://letitglow.app/ahg/kit/raw/.github/skills/markdown-scanner/references/domain-8-anchor-link-validation-wcag-2-4-4.md - Everything in the kit
Copy it into ChatGPT or another assistant
Read the plain text first
Markdown Scanner reference: Domain 8: Anchor Link Validation (WCAG 2.4.4)
Part of the markdown-scanner skill. Read this only when the task reaches these sections.
Domain 8: Anchor Link Validation (WCAG 2.4.4)
Only run if anchor-validation: yes.
- Extract all
[text](#anchor)links - Build valid anchor set from headings using GitHub rules:
- Lowercase the heading text (strip the leading
#chars and surrounding whitespace) - Remove punctuation (keep letters, digits, spaces, hyphens and underscores)
- Replace each space with a hyphen
- Append
-1,-2and so on to repeated headings so each anchor is unique
- Lowercase the heading text (strip the leading
- Flag any anchor that does not match a valid heading anchor
- Suggest nearest match (string similarity)
Never auto-fix anchors. Report with best-guess correction and let the user decide.
For [text](other-file.md#anchor) cross-file links: flag as "manual verification recommended."
Headings containing emoji produce unstable anchors - flag these separately.