mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-22 20:02:11 +00:00
Enable header id blackfriday extension
This commit is contained in:
parent
c1b9e8d54b
commit
13a317b975
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue