diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-18 23:38:37 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-18 23:38:37 -0600 |
commit | 406df22a16074ee09c0ee9cf5447ff49bc3ea1e5 (patch) | |
tree | a45bca517d33e0d319a7da5de3d43c09a9c4103f | |
parent | afb2ca27c1b5464778c2e2c4ebf6f66337f98b30 (diff) |
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
-rw-r--r-- | modules/caddyhttp/templates/tplcontext.go | 2 |
1 files changed, 1 insertions, 1 deletions
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), |