Skip to content

Commit 274e8a9

Browse files
committed
Remove all 'class' attributes from pre tags.
1 parent d0878f3 commit 274e8a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_tasks/import.rb

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
span.replace(span.inner_text)
8080
end
8181

82+
# remove the 'class' attribute from all pre tags
83+
content_div.search('pre').remove_attr('class')
84+
8285
# map all code elements to their inner_text
8386
content_div.search('pre > code').each do |code|
8487
code.replace(code.children.map { |node|

0 commit comments

Comments
 (0)