Skip to content

Commit

Permalink
bug evilstreak#24 (implicit conversion to an immutable string)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Apr 8, 2012
1 parent 426ec3f commit d10d54f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ Markdown.dialects.Gruber = {
// if the next block is also a blockquote merge it in
while ( next.length && next[ 0 ][ 0 ] == ">" ) {
var b = next.shift();
block += block.trailing + b;
block = new String(block + block.trailing + b);
block.trailing = b.trailing;
}

Expand Down
7 changes: 7 additions & 0 deletions test/features/blockquotes/threequotes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ "html",
[ "blockquote",
[ "p", "this is" ],
[ "p", "three" ],
[ "p", "quotes" ]
]
]
5 changes: 5 additions & 0 deletions test/features/blockquotes/threequotes.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> this is

> three

> quotes

0 comments on commit d10d54f

Please sign in to comment.