Skip to content

Commit 12168b2

Browse files
sinkuumarijnh
authored andcommitted
[troff mode] Fix MIME type
`text/troff` is the standard approved by IANA. Also add some non-standard MIME types. https://bugs.freedesktop.org/show_bug.cgi?id=5072
1 parent afed95a commit 12168b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mode/troff/troff.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ CodeMirror.defineMode('troff', function() {
7777
};
7878
});
7979

80+
CodeMirror.defineMIME('text/troff', 'troff');
81+
CodeMirror.defineMIME('text/x-troff', 'troff');
82+
CodeMirror.defineMIME('application/x-troff', 'troff');
8083
CodeMirror.defineMIME('troff', 'troff');
8184

8285
});

0 commit comments

Comments
 (0)