Enable header id blackfriday extension

This commit is contained in:
Dave Johnston 2014-08-30 08:25:20 +00:00 committed by spf13
parent c1b9e8d54b
commit 13a317b975

View file

@ -684,6 +684,7 @@ func markdownRender(content []byte) []byte {
extensions |= blackfriday.EXTENSION_STRIKETHROUGH
extensions |= blackfriday.EXTENSION_SPACE_HEADERS
extensions |= blackfriday.EXTENSION_FOOTNOTES
extensions |= blackfriday.EXTENSION_HEADER_IDS
return blackfriday.Markdown(content, renderer, extensions)
}
@ -706,6 +707,7 @@ func markdownRenderWithTOC(content []byte) []byte {
extensions |= blackfriday.EXTENSION_STRIKETHROUGH
extensions |= blackfriday.EXTENSION_SPACE_HEADERS
extensions |= blackfriday.EXTENSION_FOOTNOTES
extensions |= blackfriday.EXTENSION_HEADER_IDS
return blackfriday.Markdown(content, renderer, extensions)
}