-
Notifications
You must be signed in to change notification settings - Fork 13.6k
don't emit rustdoc::broken_intra_doc_links for stuff like [!NOTE] #144921
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
base: master
Are you sure you want to change the base?
don't emit rustdoc::broken_intra_doc_links for stuff like [!NOTE] #144921
Conversation
r? @notriddle rustbot has assigned @notriddle. Use |
This comment has been minimized.
This comment has been minimized.
42afec6
to
bfea0ee
Compare
if ignore_urllike && should_ignore_link(path_str) { | ||
return None; | ||
} | ||
// ignore github flavored markdown special blockquotes, | ||
// such as [!NOTE] and [!IMPORTANT] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate the comment slightly noting that it's ~common for people to include_str the README.md of their GitHub repo?
I think we want to highlight that cuz rustdoc doesn't use GitHub-flavored Markdown and doesn't support GitHub-style admonitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, good point, will elaborate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, I expanded the documentation and also made sure that [!]
is still parsed as a link to the never type.
This comment has been minimized.
This comment has been minimized.
bfea0ee
to
a09b688
Compare
a09b688
to
fa095a8
Compare
fixes #141866