mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-23 15:31:40 -04: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…
x
Reference in New Issue
Block a user