mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Add Header IDs to default extensions
This commit is contained in:
parent
2dff0864f0
commit
cf01a94556
|
@ -227,6 +227,8 @@ func MarkdownBasic(input []byte) []byte {
|
||||||
// * Strikethrough support
|
// * Strikethrough support
|
||||||
//
|
//
|
||||||
// * Strict header parsing
|
// * Strict header parsing
|
||||||
|
//
|
||||||
|
// * Custom Header IDs
|
||||||
func MarkdownCommon(input []byte) []byte {
|
func MarkdownCommon(input []byte) []byte {
|
||||||
// set up the HTML renderer
|
// set up the HTML renderer
|
||||||
htmlFlags := 0
|
htmlFlags := 0
|
||||||
|
@ -245,6 +247,7 @@ func MarkdownCommon(input []byte) []byte {
|
||||||
extensions |= EXTENSION_AUTOLINK
|
extensions |= EXTENSION_AUTOLINK
|
||||||
extensions |= EXTENSION_STRIKETHROUGH
|
extensions |= EXTENSION_STRIKETHROUGH
|
||||||
extensions |= EXTENSION_SPACE_HEADERS
|
extensions |= EXTENSION_SPACE_HEADERS
|
||||||
|
extensions |= EXTENSION_HEADER_IDS
|
||||||
|
|
||||||
return Markdown(input, renderer, extensions)
|
return Markdown(input, renderer, extensions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user