diff options
author | Greg Anders <8965202+gpanders@users.noreply.github.com> | 2020-07-06 11:53:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 11:53:40 -0600 |
commit | c35820012bfd1b636cc16d1869f80be8e6a57ce1 (patch) | |
tree | b877768f51293d2d2cc129e38022e8737a66a5ed /modules/caddyhttp/templates | |
parent | 2d0f8831f86a384f2cd409d60136ed6cd1225f32 (diff) |
templates: Disable hard wraps in Markdown rendering (#3553)
Diffstat (limited to 'modules/caddyhttp/templates')
-rw-r--r-- | modules/caddyhttp/templates/tplcontext.go | 1 |
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? ), ) |