markdown

package
v0.0.0-...-576eb72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2014 License: MPL-2.0 Imports: 4 Imported by: 0

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 }}
```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL