Browse Source

strip styling

Gergely Gombos 1 year ago
parent
commit
7be6b3e7c4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/docs/filters/react/clean_html_react_dev.rb

+ 3 - 0
lib/docs/filters/react/clean_html_react_dev.rb

@@ -43,6 +43,9 @@ module Docs
           node['data-language'] = 'jsx'
         end
 
+        # Remove styling
+        css('*').remove_attr('class').remove_attr('style')
+
         doc
       end
     end