diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-23 13:26:00 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-02-23 13:53:27 -0700 |
| commit | 5a9a3df3125b13de25ba7d0c91efebf82e94c3f9 (patch) | |
| tree | 4b13c5830ab6be4ce1ba9845a85e06942734f0ff /src/librustdoc/html | |
| parent | 07c993eba8b76eae497e98433ae075b00f01be10 (diff) | |
| download | rust-5a9a3df3125b13de25ba7d0c91efebf82e94c3f9.tar.gz rust-5a9a3df3125b13de25ba7d0c91efebf82e94c3f9.zip | |
rustdoc: avoid including `<li>` tags in item table short desc
Fixes a bug seen at https://docs.rs/gl_constants/0.1.1/gl_constants/index.html
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 9ef0b501c08..89f1ad71134 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -552,10 +552,7 @@ impl<'a, I: Iterator<Item = Event<'a>>> SummaryLine<'a, I> { } fn check_if_allowed_tag(t: &Tag<'_>) -> bool { - matches!( - t, - Tag::Paragraph | Tag::Item | Tag::Emphasis | Tag::Strong | Tag::Link(..) | Tag::BlockQuote - ) + matches!(t, Tag::Paragraph | Tag::Emphasis | Tag::Strong | Tag::Link(..) | Tag::BlockQuote) } fn is_forbidden_tag(t: &Tag<'_>) -> bool { |
