Skip to content

Port #956 from v1 to main: fix broken links in contributor docs - #1604

Merged
doradocodes merged 3 commits into
processing:mainfrom
Nwakaego-Ego:port-956-to-main
Sep 23, 2026
Merged

doradocodes merged 3 commits into
processing:mainfrom
Nwakaego-Ego:port-956-to-main

Conversation

@Nwakaego-Ego

Copy link
Copy Markdown
Contributor

Ports the substantive changes from #956, which was merged into v1, to main

- Extend rewriteRelativeMdLinks to handle reference link syntax
- Support both inline links and reference links for markdown files
- Maintain backward compatibility with existing inline link processing
- Replace endsWith() with includes() to detect .md files with hash fragments
- Use lookahead regex to avoid breaking .mdx and other extensions
- Properly convert links like 'file.md#section' to 'file/#section'
- Add comprehensive test for reference link syntax processing
- Verify both inline and reference links are handled correctly
- Test hash fragment preservation in reference links
@doradocodes
doradocodes merged commit 424ac41 into processing:main Sep 23, 2026
4 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.

3 participants