Fix mentioning punycode domains when using Markdown

This commit is contained in:
tusooa 2023-07-29 12:55:43 -04:00
commit b748efe66a
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
3 changed files with 14 additions and 1 deletions

View file

@ -124,7 +124,7 @@ defmodule Pleroma.Formatter do
end
def markdown_to_html(text) do
Earmark.as_html!(text, %Earmark.Options{compact_output: true})
Earmark.as_html!(text, %Earmark.Options{compact_output: true, smartypants: false})
end
def html_escape({text, mentions, hashtags}, type) do