-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Improve documentation for using warning blocks in documentation #119245
Conversation
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.
LGTM
be interpreted as such, you need to have an empty line between the HTML tags | ||
and your markdown content. For example if you want to use a link: | ||
|
||
```md |
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.
I'm kinda surprised that we use md
instead of rs
given the ///
at the start of the line but I get that that probably leads to better highlighting (it's also used that way above).
I've just noticed that we use text
for a lot of markdown snippets in this file, should probably be changed at some point 🤔
r? fmease @bors r+ rollup |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#119231 (Clairify `ast::PatKind::Struct` presese of `..` by using an enum instead of a bool) - rust-lang#119232 (Fix doc typos) - rust-lang#119245 (Improve documentation for using warning blocks in documentation) - rust-lang#119248 (remove dead inferred outlives testing code) - rust-lang#119249 (Add spastorino to users_on_vacation) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#119245 - GuillaumeGomez:improve-docs, r=fmease Improve documentation for using warning blocks in documentation From [this comment](rust-lang#79710 (comment)), I think markdown can be surprising sometimes so better explain a bit better how to use it correctly. r? `@notriddle`
From this comment, I think markdown can be surprising sometimes so better explain a bit better how to use it correctly.
r? @notriddle