diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go index 8fa2de6da..4ee47b7a1 100644 --- a/modules/highlight/highlight.go +++ b/modules/highlight/highlight.go @@ -216,7 +216,7 @@ func PlainText(code []byte) []template.HTML { } func formatLexerName(name string) string { - if name == "fallback" { + if name == "fallback" || name == "plaintext" { return "Text" }