mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-01 00:23:48 +03:00
Markdown defaults to .md
This commit is contained in:
parent
29fec4742e
commit
f2f5d4984d
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue