all repos — grayfriday @ fa1adcf84b3de15802e265c78edec081e02d909b

blackfriday fork with a few changes

Fix test case.

Fix a minor issue in expected anchor after recent PR. The tests were written before the improvement that squashes non-alphanumeric characters into a single dash, and does not include dashes at the beginning and end. This updates the test case to match that behavior so that tests pass and Travis is green.
Dmitri Shuralyov shurcooL@gmail.com
Mon, 24 Nov 2014 20:01:03 -0800
commit

fa1adcf84b3de15802e265c78edec081e02d909b

parent

77aeb0ca37d425a404d87eb4d10cb3e33400c3d0

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M block_test.goblock_test.go

@@ -328,7 +328,7 @@ "###### Header 6\n",

"<h6 id=\"header-6\">Header 6</h6>\n", "####### Header 7\n", - "<h6 id=\"-header-7\"># Header 7</h6>\n", + "<h6 id=\"header-7\"># Header 7</h6>\n", "Hello\n# Header 1\nGoodbye\n", "<p>Hello</p>\n\n<h1 id=\"header-1\">Header 1</h1>\n\n<p>Goodbye</p>\n",

@@ -379,7 +379,7 @@ "###### Header 6\n",

"<h6 id=\"PRE:header-6:POST\">Header 6</h6>\n", "####### Header 7\n", - "<h6 id=\"PRE:-header-7:POST\"># Header 7</h6>\n", + "<h6 id=\"PRE:header-7:POST\"># Header 7</h6>\n", "Hello\n# Header 1\nGoodbye\n", "<p>Hello</p>\n\n<h1 id=\"PRE:header-1:POST\">Header 1</h1>\n\n<p>Goodbye</p>\n",