1
0
Fork 0
forked from forgejo/forgejo

Fix #362, update code with upstream

This commit is contained in:
Unknwon 2014-08-23 21:13:55 +08:00
parent b765229a6d
commit 97a373f5e7
3 changed files with 387 additions and 107 deletions

View file

@ -39,7 +39,7 @@ func isLink(link []byte) bool {
func IsMarkdownFile(name string) bool {
name = strings.ToLower(name)
switch filepath.Ext(name) {
case ".md", ".markdown", ".mdown":
case ".md", ".markdown", ".mdown", ".mkd":
return true
}
return false