Browse Source

templates: Elaborate on what's supported by the markdown function (#4564)

master
Francis Lavoie 3 years ago
committed by GitHub
parent
commit
1d0425b26f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      modules/caddyhttp/templates/templates.go

6
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"}}

Loading…
Cancel
Save