Browse Source

No highlighting for .txt files (#1922)

Ethan Koenig 3 years ago
parent
commit
6d613fb28e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/highlight/highlight.go

+ 3 - 1
modules/highlight/highlight.go

@@ -63,7 +63,9 @@ var (
63 63
 	}
64 64
 
65 65
 	// Extensions that are not same as highlight classes.
66
-	highlightMapping = map[string]string{}
66
+	highlightMapping = map[string]string{
67
+		".txt": "nohighlight",
68
+	}
67 69
 )
68 70
 
69 71
 // NewContext loads highlight map