summaryrefslogtreecommitdiffstats
path: root/modules/setting/markup.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/markup.go')
-rw-r--r--modules/setting/markup.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/setting/markup.go b/modules/setting/markup.go
index 31ec1dd2eb..0bf6797712 100644
--- a/modules/setting/markup.go
+++ b/modules/setting/markup.go
@@ -15,8 +15,9 @@ import (
// ExternalMarkupRenderers represents the external markup renderers
var (
- ExternalMarkupRenderers []*MarkupRenderer
- ExternalSanitizerRules []MarkupSanitizerRule
+ ExternalMarkupRenderers []*MarkupRenderer
+ ExternalSanitizerRules []MarkupSanitizerRule
+ MermaidMaxSourceCharacters int
)
// MarkupRenderer defines the external parser configured in ini
@@ -40,6 +41,7 @@ type MarkupSanitizerRule struct {
}
func newMarkup() {
+ MermaidMaxSourceCharacters = Cfg.Section("markup").Key("MERMAID_MAX_SOURCE_CHARACTERS").MustInt(5000)
ExternalMarkupRenderers = make([]*MarkupRenderer, 0, 10)
ExternalSanitizerRules = make([]MarkupSanitizerRule, 0, 10)