Browse Source

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

master
Greg Anders 5 years ago
committed by GitHub
parent
commit
c35820012b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/caddyhttp/templates/tplcontext.go

1
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?
),
)

Loading…
Cancel
Save