0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-02-03 23:09:57 -05:00

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)
}