all repos — grayfriday @ 7ad5f9c1197c54c0be24fb0b0b1d75eb7ef19d89

blackfriday fork with a few changes

Correctly emit trailing header ID brace
Dave Johnston johnsto@gmail.com
Sat, 05 Apr 2014 20:59:03 +0100
commit

7ad5f9c1197c54c0be24fb0b0b1d75eb7ef19d89

parent

cf01a94556f19b31205611c7aa5f92ddf2381081

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M block.goblock.go

@@ -196,6 +196,7 @@ }

if j < end && k < end { id = string(data[j+2:k]) end = j + skip = k + 1 } } for end > 0 && data[end-1] == '#' {
M block_test.goblock_test.go

@@ -191,6 +191,12 @@

"# Header 1 {#someid\n", "<h1>Header 1 {#someid</h1>\n", + "# Header 1 {#someid\n", + "<h1>Header 1 {#someid</h1>\n", + + "# Header 1 {#someid}}\n", + "<h1 id=\"someid\">Header 1</h1>\n\n<p>}</p>\n", + "## Header 2 {#someid}\n", "<h2 id=\"someid\">Header 2</h2>\n",