Add Header IDs to default extensions

This commit is contained in:
Dave Johnston 2014-04-05 20:45:57 +01:00
parent 2dff0864f0
commit cf01a94556

View File

@ -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)
} }