From 406df22a16074ee09c0ee9cf5447ff49bc3ea1e5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 18 Mar 2020 23:38:37 -0600 Subject: 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(-) (limited to 'modules/caddyhttp') diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go index 3fa49a7..f49c369 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), -- cgit v1.2.3