mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 03:29:43 +02:00
Fix regression of renderer (#16091)
* Fix regression of renderer * Fix render setting load twice bug
This commit is contained in:
1 parent
b3ef6a61e5
commit
b6762e2306
2 files changed
+34
-22
No files matched your search
@@ -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 == "" {
|
||||
|
||||
Reference in new issue
Block a user