Markdown defaults to .md

This commit is contained in:
Matthew Holt 2015-03-31 23:41:16 -06:00
parent 29fec4742e
commit f2f5d4984d

View file

@ -164,6 +164,11 @@ func parse(c middleware.Controller) ([]MarkdownConfig, error) {
}
}
// If no extensions were specified, assume .md
if len(md.Extensions) == 0 {
md.Extensions = []string{".md"}
}
mdconfigs = append(mdconfigs, md)
}