summaryrefslogtreecommitdiffstats
path: root/modules/markup/markdown
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-04-16 03:53:57 -0400
committerzeripath <art27@cantab.net>2019-04-16 08:53:57 +0100
commit1bce1894f5ceefff2af0ebb95d060cec6f9c21b2 (patch)
tree280e3b2cb5e7e4306e983d030a7d0018292414e0 /modules/markup/markdown
parente98565ddc71013bc4bc5537f15f545cf909fac3a (diff)
downloadgitea-1bce1894f5ceefff2af0ebb95d060cec6f9c21b2.tar.gz
gitea-1bce1894f5ceefff2af0ebb95d060cec6f9c21b2.zip
Use ctx.metas for SHA hash links (#6645)
Since #6273 was merged, we now have access to proper context metas always. Update SHA generated links to use these instead of urlPrefix. Update tests as well. Fixes #4536.
Diffstat (limited to 'modules/markup/markdown')
-rw-r--r--modules/markup/markdown/markdown_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go
index 8ba51e6a1b..2128639b9f 100644
--- a/modules/markup/markdown/markdown_test.go
+++ b/modules/markup/markdown/markdown_test.go
@@ -103,6 +103,8 @@ func testAnswers(baseURLContent, baseURLImages string) []string {
<li><a href="` + baseURLContent + `/Tips" rel="nofollow">Tips</a></li>
</ul>
+<p>See commit <a href="http://localhost:3000/gogits/gogs/commit/fc7f44dadf" rel="nofollow"><code>fc7f44dadf</code></a></p>
+
<p>Ideas and codes</p>
<ul>
@@ -192,6 +194,8 @@ var sameCases = []string{
- [[Links, Language bindings, Engine bindings|Links]]
- [[Tips]]
+See commit fc7f44dadf
+
Ideas and codes
- Bezier widget (by @r-lyeh) ` + AppURL + `ocornut/imgui/issues/786