Code clean up for new config options

This commit is contained in:
Unknwon committed 2016-08-14 23:52:24 -07:00
1 parent d0a0239bac
commit 15845cb287
17 files changed
+87 -110

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ func isLink(link []byte) bool {
// based on its extension.
func IsMarkdownFile(name string) bool {
extension := strings.ToLower(filepath.Ext(name))
for _, ext := range setting.Markdown.MdFileExtensions {
for _, ext := range setting.Markdown.FileExtensions {
if strings.ToLower(ext) == extension {
return true
}