Skip to content

Fix links to .md files that have an #anchor - #4487

Merged
mashehu merged 4 commits into
nf-core:mainfrom
rhassaine:md-links-with-anchors
Oct 20, 2026
Merged

mashehu merged 4 commits into
nf-core:mainfrom
rhassaine:md-links-with-anchors

Conversation

@rhassaine

@rhassaine rhassaine commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Links to a markdown file with an #anchor keep their .md and 404. For example, the "nf-core extension pack" link on Dev containers points to ./vs-code.md#nf-core-extension-pack.

bin/satteri/hast-markdown-links.ts only rewrote links that end in .md or .mdx. It now also rewrites them when an #anchor or a ?query follows: page.md#section becomes page/#section.

Links fixed by this:

  • Docs pages that already had them:
    • contributing/contribute-components.md
    • contributing/contribute-existing-pipelines.md
    • contributing/contribute-new-pipelines.md
    • get_started/environment_setup/dev-containers.md
    • get_started/environment_setup/prettier.md
    • get_started/environment_setup/troubleshooting.md (2 lines)
  • The new "See NfcoreCitationUtils" link in the nf-core-utils docs of Update nf-core-utils docs for 0.6.0 #4484.

Added bin/satteri/hast-markdown-links.test.ts. npm run test-unit passes (6 tests).

🤖 Generated with Claude Code

@netlify /docs/get_started/environment_setup/prettier

The markdown-links plugin only rewrote links ending in .md/.mdx, so
`page.md#section` kept the extension and 404'd, e.g. the nf-core
extension pack link on the dev containers page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nf-core-main-site ready!

Name Link
🔨 Latest commit a599a9f
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-main-site/deploys/6ad7321563ee36575b8e0189
😎 Deploy Preview https://deploy-preview-4487--nf-core-main-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nf-core-docs ready!

Name Link
🔨 Latest commit a599a9f
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-docs/deploys/6ad7321518f686dcdb403c55
😎 Deploy Preview https://deploy-preview-4487--nf-core-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@mashehu
mashehu merged commit 35d7efb into nf-core:main Oct 20, 2026
13 checks passed
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