Allow styles in <dt> elements

I have not yet checked to see if this breaks things.
This commit is contained in:
Jed Fox 2020-01-10 10:40:08 -05:00
parent 90f2988ba3
commit 9a564eac99

View file

@ -57,14 +57,6 @@ module Docs
node.parent.before(node.content).remove
end
css('dt').each do |node|
next unless node['id'] || node.at_css('code, .classifier')
links = []
links << node.children.last.remove while node.children.last.try(:name) == 'a'
node.inner_html = "<code>#{CGI::escapeHTML(node.content.strip)}</code> "
links.reverse_each { |link| node << link }
end
css('li > p:first-child:last-child').each do |node|
node.before(node.children).remove
end