Skip to content

Commit 95da01c

Browse files
authored
Add QueryEscape to general funcmap (#17526)
QueryEscape was only added to the text funcmap. Add this to the main template funcmap too. Signed-off-by: Andrew Thornton <[email protected]>
1 parent e69521f commit 95da01c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/templates/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap {
379379
"MermaidMaxSourceCharacters": func() int {
380380
return setting.MermaidMaxSourceCharacters
381381
},
382+
"QueryEscape": url.QueryEscape,
382383
}}
383384
}
384385

0 commit comments

Comments
 (0)