We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb38c04 commit 51b7680Copy full SHA for 51b7680
routers/web/repo/wiki.go
@@ -534,7 +534,9 @@ func Wiki(ctx *context.Context) {
534
}
535
536
wikiPath := entry.Name()
537
- if markup.DetectMarkupTypeByFileName(wikiPath) != markdown.MarkupName {
+ detectedMarkupType := markup.DetectMarkupTypeByFileName(wikiPath)
538
+ if detectedMarkupType == "" {
539
+ // Only show warning if no renderer was found for this file type
540
ext := strings.ToUpper(filepath.Ext(wikiPath))
541
ctx.Data["FormatWarning"] = ext + " rendering is not supported at the moment. Rendered as Markdown."
542
0 commit comments