Skip to content

Commit 6d613fb

Browse files
ethantkoenigappleboy
authored andcommitted
No highlighting for .txt files (#1922)
1 parent 4a3f404 commit 6d613fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/highlight/highlight.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ var (
6363
}
6464

6565
// Extensions that are not same as highlight classes.
66-
highlightMapping = map[string]string{}
66+
highlightMapping = map[string]string{
67+
".txt": "nohighlight",
68+
}
6769
)
6870

6971
// NewContext loads highlight map

0 commit comments

Comments
 (0)