1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-25 21:39:02 +02:00

Allow .mkd and .markdown (#73)

Yeah I know, but they are out there ;)
This commit is contained in:
Trevor Joynson 2017-10-22 16:49:04 -07:00 committed by Alec Thomas
parent 8533b6348b
commit d6eb27d4b5

View File

@ -8,8 +8,8 @@ import (
var Markdown = Register(MustNewLexer( var Markdown = Register(MustNewLexer(
&Config{ &Config{
Name: "markdown", Name: "markdown",
Aliases: []string{"md"}, Aliases: []string{"md", "mkd"},
Filenames: []string{"*.md"}, Filenames: []string{"*.md", "*.mkd", "*.markdown"},
MimeTypes: []string{"text/x-markdown"}, MimeTypes: []string{"text/x-markdown"},
}, },
Rules{ Rules{