Add support for GitHub-flavoured markdown code fences for highlighting
authorAndrew Brampton <github@bramp.net>
Fri, 3 Jul 2015 21:53:50 +0000 (14:53 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 8 Jul 2015 06:12:52 +0000 (08:12 +0200)
commitc139c6e1ef8ed745bc96d7ba3f84a7e189c4a861
treeed882a576dd2c565c171b273f2b1641d8102981c
parentfdab118010f3b5ad027038bb2b2040d30478852e
Add support for GitHub-flavoured markdown code fences for highlighting

This commit adds a new PygmentsCodeFences config option (default false), which if true will allow GitHub style backtick code fences around code, which will then be rendered by Pygments.

For example:

``` language
your code
```

can be used instead of {{< highlight language >}}your code {{< /highlight >}}.

Fixes #362
commands/hugo.go
helpers/content.go
helpers/content_renderer.go [new file with mode: 0644]