Browse Source
templates: Elaborate on what's supported by the markdown function (#4564)
master
Francis Lavoie
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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"}}
|
|
|
|