diff --git a/lib/blocks.js b/lib/blocks.js index 66113617..c74a278b 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -437,7 +437,7 @@ var blocks = { var newlinePos = content.indexOf("\n"); var firstLine = content.slice(0, newlinePos); var rest = content.slice(newlinePos + 1); - block.info = unescapeString(firstLine.trim()); + block.info = unescapeString(firstLine).trim(); block._literal = rest; } else { // indented diff --git a/test/regression.txt b/test/regression.txt index 1703e3e3..46b5e6bb 100644 --- a/test/regression.txt +++ b/test/regression.txt @@ -632,3 +632,36 @@ Entities inside autolinks (#263). .

http://>

```````````````````````````````` + +#255 + +```````````````````````````````` example +``` js +``` +``` js +``` +``` js +``` +```js +``` +```js +``` +```js +``` +```js a +``` +```js a +``` +```js a +``` +. +
+
+
+
+
+
+
+
+
+````````````````````````````````