Updating composer to fix line breaks and other rich text issues

• Updating:
- composer to fix line breaks and other rich text issues
This commit is contained in:
mgabdev
2020-06-19 21:02:13 -04:00
parent a9a566e211
commit fc80955306
6 changed files with 54 additions and 36 deletions

View File

@@ -123,7 +123,8 @@ class Formatter
def format_markdown(html)
html = markdown_formatter.render(html)
html.delete("\r").delete("\n")
# html.delete("\r").delete("\n")
html = html.gsub(/(?:\n\r?|\r\n?)/, '<br />')
end
def reformat(html, outgoing = false)