From 7be6b3e7c462526d351e0f92d2683facb7ba5b53 Mon Sep 17 00:00:00 2001 From: Gergely Gombos Date: Sun, 1 Dec 2024 23:19:00 +0100 Subject: [PATCH] strip styling --- lib/docs/filters/react/clean_html_react_dev.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/docs/filters/react/clean_html_react_dev.rb b/lib/docs/filters/react/clean_html_react_dev.rb index 954dd9b3..2a5ce8a2 100644 --- a/lib/docs/filters/react/clean_html_react_dev.rb +++ b/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