Skip to content

Commit f8edc29

Browse files
authored
Set MERMAID_MAX_SOURCE_CHARACTERS to 50000 (#34152)
Fix #32015
1 parent 1b2d8df commit f8edc29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: custom/conf/app.example.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -2457,7 +2457,7 @@ LEVEL = Info
24572457
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24582458
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24592459
;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits)
2460-
;MERMAID_MAX_SOURCE_CHARACTERS = 5000
2460+
;MERMAID_MAX_SOURCE_CHARACTERS = 50000
24612461

24622462
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24632463
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Diff for: modules/setting/markup.go

+1-1
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)