-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove disambiguator from intra doc link text #65354
Comments
I can do it if you want but maybe you prefer doing it? |
I definitely don't prefer doing it. 😉 Feel free to go ahead. Thanks! |
Ok haha. Will try to do it not too far into the future. |
@rustbot claim |
So, I tried implementing this just now and it's not possible with the current pulldown-cmark API. The issue is that while Maybe we could ask pulldown to extend the API to allow this? I had trouble with the last PR I made though, the link parsing is very complicated. |
I think it'll be the best situation to directly improve the parser's API, indeed. |
This comment has been minimized.
This comment has been minimized.
The recommended solution |
Presumably you would still want to keep symbol disambiguators, right? So |
Related to rust-lang#65354 - Pass through the replacement text to `markdown.rs` - Add some tests - Add a state machine that actually replaces the text when parsing Markdown
Remove disambiguators from intra doc link text Closes rust-lang#65354. r? @Manishearth The commits are mostly atomic, but there might be some mix between them here and there. I recommend reading 'refactor ItemLink' and 'refactor RenderedLink' on their own though, lots of churn without any logic changes.
Remove disambiguators from intra doc link text Closes rust-lang#65354. r? @Manishearth The commits are mostly atomic, but there might be some mix between them here and there. I recommend reading 'refactor ItemLink' and 'refactor RenderedLink' on their own though, lots of churn without any logic changes.
Remove disambiguators from intra doc link text Closes rust-lang#65354. r? @Manishearth The commits are mostly atomic, but there might be some mix between them here and there. I recommend reading 'refactor ItemLink' and 'refactor RenderedLink' on their own though, lots of churn without any logic changes.
This is currently rendered as:
The links point to the right place (the trait and the fn respectively) but I believe the link text should be just "
Name
" for both.Discovered in #65336.
Mentioning the tracking issue: #43466
This issue has been assigned to @jyn514 via this comment.
The text was updated successfully, but these errors were encountered: