Simon Legner 4 роки тому
батько
коміт
07279d6aae
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      lib/docs/filters/yarn/clean_html_berry.rb

+ 4 - 1
lib/docs/filters/yarn/clean_html_berry.rb

@@ -34,10 +34,13 @@ module Docs
         if slug.start_with?('configuration')
           css('h1', 'h2').each do |node|
             node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
-            node.remove_attribute('style')
           end
         end
 
+        css('*').each do |node|
+          node.remove_attribute('style')
+        end
+
         doc
       end
     end