1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-05 01:57:20 +00:00

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