mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Various wiki bug fixes (#2996)
* Update macaron * Various wiki bug fixes
This commit is contained in:
		@@ -11,6 +11,7 @@ import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"html/template"
 | 
			
		||||
	"mime"
 | 
			
		||||
	"net/url"
 | 
			
		||||
	"path/filepath"
 | 
			
		||||
	"runtime"
 | 
			
		||||
	"strings"
 | 
			
		||||
@@ -105,6 +106,7 @@ func NewFuncMap() []template.FuncMap {
 | 
			
		||||
		"ShortSha":          base.ShortSha,
 | 
			
		||||
		"MD5":               base.EncodeMD5,
 | 
			
		||||
		"ActionContent2Commits": ActionContent2Commits,
 | 
			
		||||
		"PathEscape":            url.PathEscape,
 | 
			
		||||
		"EscapePound": func(str string) string {
 | 
			
		||||
			return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(str)
 | 
			
		||||
		},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user