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
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,8 @@ func MarkdownBasic(input []byte) []byte {
// * Strikethrough support
//
// * Strict header parsing
//
// * Custom Header IDs
func MarkdownCommon(input []byte) []byte {
// set up the HTML renderer
htmlFlags := 0
@ -245,6 +247,7 @@ func MarkdownCommon(input []byte) []byte {
extensions |= EXTENSION_AUTOLINK
extensions |= EXTENSION_STRIKETHROUGH
extensions |= EXTENSION_SPACE_HEADERS
extensions |= EXTENSION_HEADER_IDS
return Markdown(input, renderer, extensions)
}