forked from forgejo/forgejo
Fix #362, update code with upstream
This commit is contained in:
parent
b765229a6d
commit
97a373f5e7
3 changed files with 387 additions and 107 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue