Merge pull request #2080 from mateusdeap/main

Remove parent divs only once for each `ul` element
pull/2073/head
Simon Legner 1 year ago committed by GitHub
commit 6c81f97d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,8 +19,9 @@ module Docs
node.before(node.children).remove
end
css('div > ul').each do |node|
node.parent.before(node.parent.children).remove
parents = css('div > ul').map(&:parent).uniq
parents.each do |parent|
parent.before(parent.children).remove
end
css('dl > dd:first-child:last-child > ul:first-child:last-child').each do |node|

Loading…
Cancel
Save