FIX: HtmlToMarkdown didn't support tfoot in tables

This commit is contained in:
Gerhard Schlager
2024-06-09 13:26:39 +02:00
committed by Gerhard Schlager
parent 52e81582b4
commit b01905c724
2 changed files with 32 additions and 23 deletions

View File

@ -220,7 +220,7 @@ class HtmlToMarkdown
"\n\n#{traverse(node)}\n\n"
end
TRAVERSABLES ||= %w[aside font span thead tbody tfooter u]
TRAVERSABLES ||= %w[aside font span thead tbody tfoot u]
TRAVERSABLES.each { |tag| define_method("visit_#{tag}") { |node| traverse(node) } }
def visit_tt(node)