feat: add normalize-see-links rule - #1725
Conversation
brettz9
left a comment
There was a problem hiding this comment.
It's looking good to me. If you could just address the comments. I'd hope we can avoid unresolveable errors.
|
Addressed all three. URL-side delimiter collisions now autofix through On the label side, when I tried the |
|
LGTM, thanks for the PR! |
|
🎉 This PR is included in version 63.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #1631 by adding a fixable
normalize-see-linksrule for labeled links in@seetags. It converts Markdown[label](url)and prefix[label]{@link url}links to{@link url|label}and leaves that pipe form unchanged. Malformed or delimiter-colliding links, empty labels, code-span content, and scoped-package targets report without a fix. Bare URLs, namepaths, prose, and non-@seetags remain no-ops, with bare-URL wrapping deferred as an opt-in because it is "fine as an option if people want it." The default canonical form is pipe, while thecanonicalFormoption also allows prefix if that form is preferred.