diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-23 21:38:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 21:38:12 +0800 |
commit | 6c49517cbd9d353d2d56d899632f301919818a03 (patch) | |
tree | aaca5a05c9867c30282e628e08abac3a209985e9 /modules/markup/html_internal_test.go | |
parent | 2a9aefdabb24442f18d2ab2eac672a03928de9a4 (diff) | |
download | gitea-6c49517cbd9d353d2d56d899632f301919818a03.tar.gz gitea-6c49517cbd9d353d2d56d899632f301919818a03.zip |
Fix issue markdown bugs (#17411)
* Bug fix: render Markdown http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test to HTML correctly, close #17394
* Bug fix: fix the positions of checkboxes in rendered HTML, close #17395
Diffstat (limited to 'modules/markup/html_internal_test.go')
-rw-r--r-- | modules/markup/html_internal_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go index dbad350de2..f9ef90744b 100644 --- a/modules/markup/html_internal_test.go +++ b/modules/markup/html_internal_test.go @@ -265,6 +265,10 @@ func TestRender_FullIssueURLs(t *testing.T) { `<a href="http://localhost:3000/person/repo/issues/4#issuecomment-1234" class="ref-issue">person/repo#4</a>`) test("http://localhost:3000/gogits/gogs/issues/4", `<a href="http://localhost:3000/gogits/gogs/issues/4" class="ref-issue">#4</a>`) + test("http://localhost:3000/gogits/gogs/issues/4 test", + `<a href="http://localhost:3000/gogits/gogs/issues/4" class="ref-issue">#4</a> test`) + test("http://localhost:3000/gogits/gogs/issues/4?a=1&b=2#comment-123 test", + `<a href="http://localhost:3000/gogits/gogs/issues/4?a=1&b=2#comment-123" class="ref-issue">#4</a> test`) } func TestRegExp_sha1CurrentPattern(t *testing.T) { |