rustdoc: include strikethrough in item summary

This commit is contained in:
Lukas Markeffsky 2023-05-21 18:00:11 +02:00
parent 06345574d9
commit f4ce0458e9
2 changed files with 15 additions and 1 deletions

View File

@ -551,7 +551,15 @@ impl<'a, I: Iterator<Item = Event<'a>>> SummaryLine<'a, I> {
}
fn check_if_allowed_tag(t: &Tag<'_>) -> bool {
matches!(t, Tag::Paragraph | Tag::Emphasis | Tag::Strong | Tag::Link(..) | Tag::BlockQuote)
matches!(
t,
Tag::Paragraph
| Tag::Emphasis
| Tag::Strong
| Tag::Strikethrough
| Tag::Link(..)
| Tag::BlockQuote
)
}
fn is_forbidden_tag(t: &Tag<'_>) -> bool {

View File

@ -0,0 +1,6 @@
#![crate_name = "foo"]
// @has foo/index.html '//del' 'strike'
/// ~~strike~~
pub fn strike() {}