mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 21:14:32 +08:00
Markdown defaults to .md
This commit is contained in:
parent
29fec4742e
commit
f2f5d4984d
|
@ -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)
|
mdconfigs = append(mdconfigs, md)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user