summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/templates
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-18 23:38:37 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-18 23:38:37 -0600
commit406df22a16074ee09c0ee9cf5447ff49bc3ea1e5 (patch)
treea45bca517d33e0d319a7da5de3d43c09a9c4103f /modules/caddyhttp/templates
parentafb2ca27c1b5464778c2e2c4ebf6f66337f98b30 (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
Diffstat (limited to 'modules/caddyhttp/templates')
-rw-r--r--modules/caddyhttp/templates/tplcontext.go2
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),