mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix hljs unintenionally highlighting commit links (#7244)
* fix hljs unintenionally highlighting commit links * fix unit tests
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							a205155e9d
						
					
				
				
					commit
					b209531959
				
			@@ -323,6 +323,7 @@ func createCodeLink(href, content string) *html.Node {
 | 
			
		||||
	code := &html.Node{
 | 
			
		||||
		Type: html.ElementNode,
 | 
			
		||||
		Data: atom.Code.String(),
 | 
			
		||||
		Attr: []html.Attribute{{Key: "class", Val: "nohighlight"}},
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	code.AppendChild(text)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user