Skip to content

Fix broken integration README anchors by aligning heading slugify with GitHub#5348

Merged
Yndira-E merged 1 commit into
mainfrom
fix/integrations-anchor-slugify-mismatch
Jul 20, 2026
Merged

Fix broken integration README anchors by aligning heading slugify with GitHub#5348
Yndira-E merged 1 commit into
mainfrom
fix/integrations-anchor-slugify-mismatch

Conversation

@Yndira-E

Copy link
Copy Markdown
Contributor

Description

  • nuxt-link-checker was failing site-wide builds with "bad anchors" errors (e.g. integrations/node-red-contrib-abb-gofa#egm-optional), even on PRs unrelated to integrations.
  • Root cause: integration pages render npm package READMEs at build time using markdown-it-anchor, whose default slugify doesn't strip punctuation (e.g. ## EGM (optional)egm-(optional)). GitHub's own slugger strips it (→ egm-optional), so internal README links written against GitHub's rendering broke under our pipeline.
  • Added a custom githubSlugify function that mirrors GitHub's heading slug algorithm, so anchors generated by our renderer match the links authors wrote assuming GitHub-style rendering.

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@Yndira-E
Yndira-E requested a review from n-lark July 20, 2026 15:33
@netlify

netlify Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 996a47f
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a5e3fc0e1716b00097af2d8
😎 Deploy Preview https://deploy-preview-5348--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 64 (🔴 down 1 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@Yndira-E
Yndira-E merged commit 1c5a85d into main Jul 20, 2026
7 checks passed
@Yndira-E
Yndira-E deleted the fix/integrations-anchor-slugify-mismatch branch July 20, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants