Add Header IDs to default extensions
Dave Johnston johnsto@gmail.com
Sat, 05 Apr 2014 20:45:57 +0100
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
markdown.go
→
markdown.go
@@ -227,6 +227,8 @@ //
// * Strikethrough support // // * Strict header parsing +// +// * Custom Header IDs func MarkdownCommon(input []byte) []byte { // set up the HTML renderer htmlFlags := 0@@ -245,6 +247,7 @@ extensions |= EXTENSION_FENCED_CODE
extensions |= EXTENSION_AUTOLINK extensions |= EXTENSION_STRIKETHROUGH extensions |= EXTENSION_SPACE_HEADERS + extensions |= EXTENSION_HEADER_IDS return Markdown(input, renderer, extensions) }