Skip to content

Commit

Permalink
ignore div elements with toc class
Browse files Browse the repository at this point in the history
  • Loading branch information
Builditluc committed Aug 5, 2023
1 parent 5d7c13a commit 9162d77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wiki/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ impl<'a> Parser<'a> {
{
self.parse_redirect_msg(node)
}
"div"
if node
.attr("class")
.map(|x| x.contains("toc"))
.unwrap_or(false) => {}
"" => (),
"dl" => self.parse_description_list(node),
"div" => {
Expand Down

0 comments on commit 9162d77

Please sign in to comment.