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
3434 if slug.start_with?('configuration')
3535 css('h1', 'h2').each do |node|
3636 node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
37− node.remove_attribute('style')
3837 end
3938 end
4039
40+ css('*').each do |node|
41+ node.remove_attribute('style')
42+ end
43+
4144 doc
4245 end
4346 end