Add advanced text formatting back into glitch-soc

This commit is contained in:
Claire
2022-03-28 20:51:51 +02:00
parent f313bf3e97
commit 61cefbebf7
6 changed files with 459 additions and 29 deletions

View File

@@ -33,6 +33,10 @@ class HtmlAwareFormatter
end
def linkify
TextFormatter.new(text, options).to_s
if %w(text/markdown text/html).include?(@options[:content_type])
AdvancedTextFormatter.new(text, options).to_s
else
TextFormatter.new(text, options).to_s
end
end
end