Merge branch 'benchmark-fixes' into 'develop'
[akkoma] / lib / pleroma / formatter.ex
index 535ad5f1060245629864c62d23689edc507231cf..ae37946ab79630af6111ae439a8849a33df4f379 100644 (file)
@@ -121,6 +121,10 @@ defmodule Pleroma.Formatter do
     end
   end
 
+  def markdown_to_html(text) do
+    Earmark.as_html!(text, %Earmark.Options{compact_output: true})
+  end
+
   def html_escape({text, mentions, hashtags}, type) do
     {html_escape(text, type), mentions, hashtags}
   end