Bump earmark to 1.4.22

This commit is contained in:
tusooa 2022-12-26 10:13:48 -05:00
commit 259905a893
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
3 changed files with 7 additions and 3 deletions

View file

@ -178,6 +178,10 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
code = "https://github.com/pragdave/earmark/"
{result, [], []} = Utils.format_input(code, "text/markdown")
assert result == ~s[<p><a href="#{code}">#{code}</a></p>]
code = "https://github.com/~foo/bar"
{result, [], []} = Utils.format_input(code, "text/markdown")
assert result == ~s[<p><a href="#{code}">#{code}</a></p>]
end
test "link with local mention" do