Skip to content

Commit 7be6b3e

Browse files
committed
strip styling
1 parent 33aba06 commit 7be6b3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/docs/filters/react/clean_html_react_dev.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def call
4343
node['data-language'] = 'jsx'
4444
end
4545

46+
# Remove styling
47+
css('*').remove_attr('class').remove_attr('style')
48+
4649
doc
4750
end
4851
end

0 commit comments

Comments
 (0)