diff options
author | lain <lain@soykaf.club> | 2023-01-03 22:10:28 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2023-01-03 22:10:28 +0000 |
commit | 51b4513258890e68294603f6f3dc432f12d2b383 (patch) | |
tree | 5c188120f0d92f9a04dd08be780ed6434ee4fb2d /test | |
parent | a0cdc4cf9e6ff7857bc8a9dce029cf5103be9831 (diff) | |
parent | 4b66f2b7f1bef06c32258e5c53bacfa73c2c9787 (diff) | |
download | pleroma-51b4513258890e68294603f6f3dc432f12d2b383.tar.gz pleroma-51b4513258890e68294603f6f3dc432f12d2b383.zip |
Merge branch 'tusooa/earmark' into 'develop'
Bump earmark to 1.4.~34~22
Closes #3033
See merge request pleroma/pleroma!3820
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/common_api/utils_test.exs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pleroma/web/common_api/utils_test.exs b/test/pleroma/web/common_api/utils_test.exs index b538c5979..d309c6ded 100644 --- a/test/pleroma/web/common_api/utils_test.exs +++ b/test/pleroma/web/common_api/utils_test.exs @@ -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 |