Skip to content

Commit

Permalink
Add form to the block elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmo committed May 16, 2024
1 parent 7572aa7 commit 8933226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/downmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def html_to_markdown(node)
markdown += "[#{child.text.strip}](#{child["href"]})" if child["href"]
when "br"
markdown += "\n"
when "div", "article", "p", "body", "html", "main"
when "div", "article", "p", "body", "html", "main", "form"
markdown += "#{html_to_markdown(child).strip}\n\n"
when "span", "u"
markdown += " #{html_to_markdown(child).strip} "
Expand Down

0 comments on commit 8933226

Please sign in to comment.