Fix no-markdown post line break
This commit is contained in:
parent
8db2f96c36
commit
71917cab04
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue