Skip to content

fix: normalize p5 reference links in parameter sections#1284

Open
rushdarshan wants to merge 1 commit intoprocessing:mainfrom
rushdarshan:fix-parameter-links-674
Open

fix: normalize p5 reference links in parameter sections#1284
rushdarshan wants to merge 1 commit intoprocessing:mainfrom
rushdarshan:fix-parameter-links-674

Conversation

@rushdarshan
Copy link
Copy Markdown

Fixes #674

The regex in normalizeP5ReferenceLinks() was capturing the 'p5' prefix in the capture group, causing duplicate 'p5' in URLs.

Before: #/p5/rectMode -> /reference/p5/p5/rectMode/ (broken)
After: #/p5/rectMode -> /reference/p5/rectMode/ (fixed)

Updated regex to exclude 'p5' from capture group while still handling both dot notation (#/p5.Element) and slash notation (#/p5/rectMode) patterns.

Fixes processing#674

The regex in normalizeP5ReferenceLinks() was capturing the 'p5'
prefix in the capture group, causing duplicate 'p5' in URLs.

Before: #/p5/rectMode -> /reference/p5/p5/rectMode/ (broken)
After:  #/p5/rectMode -> /reference/p5/rectMode/ (fixed)

Updated regex to exclude 'p5' from capture group while still
handling both dot notation (#/p5.Element) and slash notation
(#/p5/rectMode) patterns.
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.

Links in Parameters section don't work

1 participant