From 11555d850b0b5977d49b458db2be6305fe4f645d Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 29 Dec 2020 00:28:27 +0800 Subject: Fix bug of link query order on markdown render (#14156) * Fix bug of link query order on markdown render * Fix bluemonday bug and fix one wrong test Co-authored-by: 6543 <6543@obermui.de> --- modules/markup/html_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/markup') diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index a018d74840..a3c273e628 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -142,7 +142,7 @@ func TestRender_links(t *testing.T) { `

ftp://gitea.com/file.txt

`) test( "magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download", - `

magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download

`) + `

magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download

`) // Test that should *not* be turned into URL test( -- cgit v1.2.3