mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: HtmlToMarkdown didn't keep text from within <center> tag
It should ignore the `<center>` tag, but keep the text from within the element.
This commit is contained in:
committed by
Gerhard Schlager
parent
b01905c724
commit
3c9d61d302
@@ -220,7 +220,7 @@ class HtmlToMarkdown
|
||||
"\n\n#{traverse(node)}\n\n"
|
||||
end
|
||||
|
||||
TRAVERSABLES ||= %w[aside font span thead tbody tfoot u]
|
||||
TRAVERSABLES ||= %w[aside font span thead tbody tfoot u center]
|
||||
TRAVERSABLES.each { |tag| define_method("visit_#{tag}") { |node| traverse(node) } }
|
||||
|
||||
def visit_tt(node)
|
||||
|
||||
Reference in New Issue
Block a user