mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
add support to keep img tags when converting to html
This commit is contained in:
parent
51ee49aad2
commit
aba76bace6
3 changed files with 16 additions and 5 deletions
|
@ -194,7 +194,7 @@ module Email
|
|||
end
|
||||
|
||||
markdown, elided_markdown = if html.present?
|
||||
markdown = HtmlToMarkdown.new(html).to_markdown
|
||||
markdown = HtmlToMarkdown.new(html, keep_img_tags: true).to_markdown
|
||||
markdown = trim_discourse_markers(markdown)
|
||||
EmailReplyTrimmer.trim(markdown, true)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue