0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

templates: Disable hard wraps in Markdown rendering (#3553)

This commit is contained in:
Greg Anders 2020-07-06 11:53:40 -06:00 committed by GitHub
parent 2d0f8831f8
commit c35820012b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,6 @@ func (templateContext) funcMarkdown(input interface{}) (string, error) {
parser.WithAutoHeadingID(),
),
goldmark.WithRendererOptions(
gmhtml.WithHardWraps(),
gmhtml.WithUnsafe(), // TODO: this is not awesome, maybe should be configurable?
),
)