Interpret `\n` as newline for MFM
[akkoma] / lib / pleroma / web / common_api / utils.ex
index 345c5d10d2a15ecb9b59ffb577b900c5a13c20cd..54918d13c832939998478b45c4c069e1ef64b975 100644 (file)
@@ -289,7 +289,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
 
   def format_input(text, "text/x.misskeymarkdown", options) do
     text
-    |> Formatter.markdown_to_html()
+    |> Formatter.markdown_to_html(%{breaks: true})
     |> MfmParser.Parser.parse()
     |> MfmParser.Encoder.to_html()
     |> Formatter.linkify(options)