Skip to content

Commit d877a45

Browse files
committed
Avoid stripping some empty SVG elements
1 parent bf4e901 commit d877a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docs/filters/core/clean_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Docs
44
class CleanTextFilter < Filter
5-
EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/
5+
EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace|rect|path|ellipse|line|polyline)(\w+)[^>]*>[[:space:]]*<\/\1>/
66

77
def call
88
return html if context[:clean_text] == false

0 commit comments

Comments
 (0)