Browse Source

templates: Enable Goldmark's footnote extension (closes #3136)

Also remove Table extension, since GFM (already enabled) apparently
enables strikethrough, table, linkify, and tasklist extensions.
https://github.com/yuin/goldmark#built-in-extensions
master
Matthew Holt 5 years ago
parent
commit
406df22a16
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      modules/caddyhttp/templates/tplcontext.go

2
modules/caddyhttp/templates/tplcontext.go

@ -237,7 +237,7 @@ func (c templateContext) funcMarkdown(input interface{}) (template.HTML, error)
md := goldmark.New(
goldmark.WithExtensions(
extension.GFM,
extension.Table,
extension.Footnote,
highlighting.NewHighlighting(
highlighting.WithFormatOptions(
html.WithClasses(true),

Loading…
Cancel
Save