markdown: Enable tables, fenced code, and strikethrough (closes #294)

This commit is contained in:
Matthew Holt
2015-10-29 09:59:14 -06:00
parent 94ff7dc6fb
commit 234783548f
4 changed files with 10 additions and 11 deletions

View File

@ -65,7 +65,8 @@ func (md Markdown) Process(c *Config, requestPath string, b []byte, ctx middlewa
}
// process markdown
markdown = blackfriday.Markdown(markdown, c.Renderer, 0)
extns := blackfriday.EXTENSION_TABLES | blackfriday.EXTENSION_FENCED_CODE | blackfriday.EXTENSION_STRIKETHROUGH
markdown = blackfriday.Markdown(markdown, c.Renderer, extns)
// set it as body for template
metadata.Variables["body"] = string(markdown)