This commit is contained in:
mgabdev
2020-05-04 14:44:37 -04:00
parent 4cf0713b37
commit 498f163880
66 changed files with 1192 additions and 246 deletions

View File

@@ -47,12 +47,9 @@ class Formatter
html = raw_content
# puts "BOLLI 1: " + html
html = encode_and_link_urls(html, linkable_accounts)
# puts "BOLLI 2: " + html
# : todo :
if options[:use_markdown]
html = convert_headers(html)
html = convert_strong(html)
@@ -63,16 +60,12 @@ class Formatter
html = convert_links(html)
html = convert_lists(html)
html = convert_ordered_lists(html)
# puts "BOLLI 3: " + html
end
html = encode_custom_emojis(html, status.emojis, options[:autoplay]) if options[:custom_emojify]
# puts "BOLLI 4: " + html
html = simple_format(html, {}, sanitize: false)
# puts "BOLLI 5: " + html
html = html.delete("\n")
html.html_safe # rubocop:disable Rails/OutputSafety