mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	@@ -444,6 +444,10 @@ func TestRender_ShortLinks(t *testing.T) {
 | 
			
		||||
		"[[Link]]",
 | 
			
		||||
		`<p><a href="`+url+`" rel="nofollow">Link</a></p>`,
 | 
			
		||||
		`<p><a href="`+urlWiki+`" rel="nofollow">Link</a></p>`)
 | 
			
		||||
	test(
 | 
			
		||||
		"[[Link.-]]",
 | 
			
		||||
		`<p><a href="http://localhost:3000/test-owner/test-repo/src/master/Link.-" rel="nofollow">Link.-</a></p>`,
 | 
			
		||||
		`<p><a href="http://localhost:3000/test-owner/test-repo/wiki/Link.-" rel="nofollow">Link.-</a></p>`)
 | 
			
		||||
	test(
 | 
			
		||||
		"[[Link.jpg]]",
 | 
			
		||||
		`<p><a href="`+imgurl+`" rel="nofollow"><img src="`+imgurl+`" title="Link.jpg" alt="Link.jpg"/></a></p>`,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user