@marcel91200 / caddy Mirror · read-only / commits / c3582001
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

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

Greg Anders committed Jul 6, 2020 at 11:53 UTC c35820012bfd1b636cc16d1869f80be8e6a57ce1
1 file changed -1
modules/caddyhttp/templates/tplcontext.go
-1
@@ -254,7 +254,6 @@ func (templateContext) funcMarkdown(input interface{}) (string, error) {
254 parser.WithAutoHeadingID(),
255 ),
256 goldmark.WithRendererOptions(
257 - gmhtml.WithHardWraps(),
257 gmhtml.WithUnsafe(), // TODO: this is not awesome, maybe should be configurable?
258 ),
259 )