From 406df22a16074ee09c0ee9cf5447ff49bc3ea1e5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 18 Mar 2020 23:38:37 -0600 Subject: [PATCH] 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 --- modules/caddyhttp/templates/tplcontext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go index 3fa49a70..f49c3692 100644 --- a/modules/caddyhttp/templates/tplcontext.go +++ b/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),