summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/markup.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/markup.go b/modules/setting/markup.go
index f0849a863a..43df4ce442 100644
--- a/modules/setting/markup.go
+++ b/modules/setting/markup.go
@@ -38,6 +38,8 @@ type MarkupSanitizerRule struct {
}
func newMarkup() {
+ ExternalMarkupRenderers = make([]MarkupRenderer, 0, 10)
+ ExternalSanitizerRules = make([]MarkupSanitizerRule, 0, 10)
for _, sec := range Cfg.Section("markup").ChildSections() {
name := strings.TrimPrefix(sec.Name(), "markup.")
if name == "" {