Skip to content

Commit

Permalink
fixup! Make Mermaid.js limit configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Jul 22, 2021
1 parent 5a45258 commit 01dd8a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ func NewFuncMap() []template.FuncMap {
html += "</span>"
return template.HTML(html)
},
"MermaidMaxSourceCharacters": setting.MermaidMaxSourceCharacters,
"MermaidMaxSourceCharacters": func() int {
return setting.MermaidMaxSourceCharacters
},
}}
}

Expand Down

0 comments on commit 01dd8a2

Please sign in to comment.