From 9a564eac99ce852fe0c97f657b9a7b88e85969b7 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Fri, 10 Jan 2020 10:40:08 -0500 Subject: [PATCH] Allow styles in
elements I have not yet checked to see if this breaks things. --- lib/docs/filters/sphinx/clean_html.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/docs/filters/sphinx/clean_html.rb b/lib/docs/filters/sphinx/clean_html.rb index 409d16c9..e4ef6371 100644 --- a/lib/docs/filters/sphinx/clean_html.rb +++ b/lib/docs/filters/sphinx/clean_html.rb @@ -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 = "#{CGI::escapeHTML(node.content.strip)} " - links.reverse_each { |link| node << link } - end - css('li > p:first-child:last-child').each do |node| node.before(node.children).remove end