Documentation ¶
Overview ¶
Package markdown implements a Markdown template converter.
To enable it, import gnd.la/template/markdown like e.g.
import ( _ "gnd.la/template/markdown" )
Any templates with the .md extension will be converted to HTML interpreting their contents as Markdown. Since Go's template syntax needs to be escaping while using Markdown, any '{' or '}' character not inside a quoted or code block (delimited by either a single ` or three ```) will be automatically escaped. For example:
{{ fun .Foo .Bar }}
Will be passed to Markdown as:
\{\{ fun .Foo .Bar \}\}
But the following won't be altered:
`{{ fun .Foo .Bar }}`
Neither will:
``` {{ fun .Foo .Bar }} ```
Click to show internal directories.
Click to hide internal directories.