History

yarn: clean all styles

Simon Legner committed 4 years ago

Commit 07279d61 parent e1623271 file · +4 −1Browse files

Unified · Split

lib/docs/filters/yarn/clean_html_berry.rb+4−1
@@ -34,10 +34,13 @@ module Docs · 33 unmodified lines
34 if slug.start_with?('configuration')34 if slug.start_with?('configuration')
35 css('h1', 'h2').each do |node|35 css('h1', 'h2').each do |node|
36 node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }36 node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
37 node.remove_attribute('style')
38 end37 end
39 end38 end
40 39
40 css('*').each do |node|
41 node.remove_attribute('style')
42 end
43
41 doc44 doc
42 end45 end
43 end46 end