Browse Source

Allow styles in <dt> elements

I have not yet checked to see if this breaks things.
Jed Fox 6 years ago
parent
commit
9a564eac99
1 changed files with 0 additions and 8 deletions
  1. 0 8
      lib/docs/filters/sphinx/clean_html.rb

+ 0 - 8
lib/docs/filters/sphinx/clean_html.rb

@@ -57,14 +57,6 @@ module Docs
           node.parent.before(node.content).remove
           node.parent.before(node.content).remove
         end
         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|
         css('li > p:first-child:last-child').each do |node|
           node.before(node.children).remove
           node.before(node.children).remove
         end
         end