Skip to content

Commit 07279d6

Browse files
committed
yarn: clean all styles
1 parent e162327 commit 07279d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/docs/filters/yarn/clean_html_berry.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ def call
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

0 commit comments

Comments
 (0)