My first question: Is Rustdoc using GFM? If not, why grab this syntax? I'd rather see efforts to getting it into CommonMark before just picking it up wholesale.
Nemo157
September 9, 2023, 7:01pm
3
I agree something with markdown syntax would be nice, but the decision was made to just offer an HTML class for this:
rust-lang:master
← GuillaumeGomez:warning-block
opened 01:57PM - 07 Jan 23 UTC
Fixes https://github.com/rust-lang/rust/issues/79710.
You can test it [here](… https://rustdoc.crud.net/imperio/warning-block/foo/struct.Foo.html). It currently looks like this:

So a few things to note:
* Since it's a new add and it's changing the UI, we'll need to go through an FCP.
* Does the UI looks good?
* Is the way picked to add a warning block ok for everyone? The discussion on the issue seemed to be in favour of this solution but it doesn't hurt to double-check.
cc @rust-lang/rustdoc
system
Closed
December 8, 2023, 8:33pm
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.