Fix no-markdown post line break

This commit is contained in:
KMY 2023-04-12 17:06:27 +09:00
parent 8db2f96c36
commit 71917cab04

View file

@ -47,7 +47,7 @@ class TextFormatter
# line first letter for blockquote
html = markdownify(html.gsub(/^>/, '>')) if markdown?
# html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
html = simple_format(html, {}, sanitize: false).delete("\n") if !markdown? && multiline?
html = html.delete("\n")
html.html_safe # rubocop:disable Rails/OutputSafety