Skip to content

Commit dd50908

Browse files
committed
set MERMAID_MAX_SOURCE_CHARACTERS to 50000
1 parent fd7c364 commit dd50908

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ LEVEL = Info
24732473
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24742474
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24752475
;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits)
2476-
;MERMAID_MAX_SOURCE_CHARACTERS = 5000
2476+
;MERMAID_MAX_SOURCE_CHARACTERS = 50000
24772477

24782478
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24792479
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

modules/setting/markup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func loadMarkupFrom(rootCfg ConfigProvider) {
127127
}
128128
}
129129

130-
MermaidMaxSourceCharacters = rootCfg.Section("markup").Key("MERMAID_MAX_SOURCE_CHARACTERS").MustInt(5000)
130+
MermaidMaxSourceCharacters = rootCfg.Section("markup").Key("MERMAID_MAX_SOURCE_CHARACTERS").MustInt(50000)
131131
ExternalMarkupRenderers = make([]*MarkupRenderer, 0, 10)
132132
ExternalSanitizerRules = make([]MarkupSanitizerRule, 0, 10)
133133

0 commit comments

Comments
 (0)