all repos — grayfriday @ cf01a94556f19b31205611c7aa5f92ddf2381081

blackfriday fork with a few changes

Add Header IDs to default extensions
Dave Johnston johnsto@gmail.com
Sat, 05 Apr 2014 20:45:57 +0100
commit

cf01a94556f19b31205611c7aa5f92ddf2381081

parent

2dff0864f0288984446b73c8d9f60fc441f48b3d

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M markdown.gomarkdown.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) }