From cf01a94556f19b31205611c7aa5f92ddf2381081 Mon Sep 17 00:00:00 2001 From: Dave Johnston Date: Sat, 5 Apr 2014 20:45:57 +0100 Subject: [PATCH] Add Header IDs to default extensions --- markdown.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/markdown.go b/markdown.go index 703bd88..63d8a40 100644 --- a/markdown.go +++ b/markdown.go @@ -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) }