summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Anders <8965202+gpanders@users.noreply.github.com>2020-07-06 11:53:40 -0600
committerGitHub <noreply@github.com>2020-07-06 11:53:40 -0600
commitc35820012bfd1b636cc16d1869f80be8e6a57ce1 (patch)
treeb877768f51293d2d2cc129e38022e8737a66a5ed
parent2d0f8831f86a384f2cd409d60136ed6cd1225f32 (diff)
templates: Disable hard wraps in Markdown rendering (#3553)
-rw-r--r--modules/caddyhttp/templates/tplcontext.go1
1 files changed, 0 insertions, 1 deletions
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?
),
)