diff options
author | silverwind <me@silverwind.io> | 2019-04-09 05:18:48 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-04-09 06:18:48 +0300 |
commit | 8e949db3b540486a8b5f085ebf2a7ff2d8cea646 (patch) | |
tree | 3e0bb5be3089d97963a865d8f4aab5d9cb661967 /modules/markup/html_internal_test.go | |
parent | 61b85990a62419aed0d425643cf723866e6de760 (diff) | |
download | gitea-8e949db3b540486a8b5f085ebf2a7ff2d8cea646.tar.gz gitea-8e949db3b540486a8b5f085ebf2a7ff2d8cea646.zip |
Render SHA1 links as code blocks (#6546)
Diffstat (limited to 'modules/markup/html_internal_test.go')
-rw-r--r-- | modules/markup/html_internal_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go index cc261318eb..c71948593d 100644 --- a/modules/markup/html_internal_test.go +++ b/modules/markup/html_internal_test.go @@ -195,13 +195,13 @@ func TestRender_AutoLink(t *testing.T) { // render valid commit URLs tmp := util.URLJoin(AppSubURL, "commit", "d8a994ef243349f321568f9e36d5c3f444b99cae") - test(tmp, "<a href=\""+tmp+"\">d8a994ef24</a>") + test(tmp, "<a href=\""+tmp+"\"><code>d8a994ef24</code></a>") tmp += "#diff-2" - test(tmp, "<a href=\""+tmp+"\">d8a994ef24 (diff-2)</a>") + test(tmp, "<a href=\""+tmp+"\"><code>d8a994ef24 (diff-2)</code></a>") // render other commit URLs tmp = "https://external-link.gogs.io/gogs/gogs/commit/d8a994ef243349f321568f9e36d5c3f444b99cae#diff-2" - test(tmp, "<a href=\""+tmp+"\">d8a994ef24 (diff-2)</a>") + test(tmp, "<a href=\""+tmp+"\"><code>d8a994ef24 (diff-2)</code></a>") } func TestRender_FullIssueURLs(t *testing.T) { |