| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Someone is attempting to deploy a commit to the Docsify Team on Vercel. A member of the Team first needs to authorize it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
A link with :target=_self changes the target of subsequent ordinary external links to _self, even though the configured default is _blank. The link renderer mutates linkTarget captured by its closure, so one link's override becomes the next link's default.
Compute target and rel locally for each rendered link. Three regression cases cover overrides on external, relative, and mailto links followed by an ordinary external link.
Example: [First](https://example.org/first ':target=_self') followed by [Second](https://example.org/second) now keeps the second link's default _blank target and noopener relation.
Related issue, if any:
Reproduced on develop at d823dbe51c1b2dea4c2091e2b952ded0d1e16616; no matching open fix found.
What kind of change does this PR introduce?
For any code change,
Does this PR introduce a breaking change?
Validation
The regression uses the existing JSDOM integration renderer. Browser E2E was not run for this patch.
Developed with assistance from OpenAI Codex; regression and fix validated locally.