Skip to content

Commit

Permalink
Fix render setting load twice bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jun 6, 2021
1 parent 24f049d commit 99197e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/setting/markup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 99197e2

Please sign in to comment.