From c35820012bfd1b636cc16d1869f80be8e6a57ce1 Mon Sep 17 00:00:00 2001 From: Greg Anders <8965202+gpanders@users.noreply.github.com> Date: Mon, 6 Jul 2020 11:53:40 -0600 Subject: templates: Disable hard wraps in Markdown rendering (#3553) --- modules/caddyhttp/templates/tplcontext.go | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/caddyhttp/templates') diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go index b466c5a..814d06f 100644 --- a/modules/caddyhttp/templates/tplcontext.go +++ b/modules/caddyhttp/templates/tplcontext.go @@ -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? ), ) -- cgit v1.2.3