Skip to content

Commit

Permalink
templates: Elaborate on what's supported by the markdown function (#4564
Browse files Browse the repository at this point in the history
)
  • Loading branch information
francislavoie committed Feb 7, 2022
1 parent 7557d1d commit 1d0425b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/caddyhttp/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down

0 comments on commit 1d0425b

Please sign in to comment.