mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-28 13:20:20 +08:00
Fix #362, update code with upstream
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user