From 1d0425b26f1fbb797d7bc10e3740dc031410d01f Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Mon, 7 Feb 2022 00:14:41 -0500 Subject: [PATCH] templates: Elaborate on what's supported by the markdown function (#4564) --- modules/caddyhttp/templates/templates.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go index f7332a9a..d4505f05 100644 --- a/modules/caddyhttp/templates/templates.go +++ b/modules/caddyhttp/templates/templates.go @@ -126,7 +126,11 @@ func init() { // // ##### `markdown` // -// Renders the given Markdown text as HTML. +// Renders the given Markdown text as HTML. This uses the +// [Goldmark](https://github.com/yuin/goldmark) library, +// which is CommonMark compliant. It also has these plugins +// enabled: Github Flavored Markdown, Footnote and syntax +// highlighting provided by [Chroma](https://github.com/alecthomas/chroma). // // ``` // {{markdown "My _markdown_ text"}}