Skip to content

Commit

Permalink
Merge pull request #44 from rlidwka/bug-24a
Browse files Browse the repository at this point in the history
fix for bug #24 (implicit conversion to a string)
  • Loading branch information
ashb committed Apr 8, 2012
2 parents f81e0d1 + d10d54f commit b23ef98
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 @@ -681,7 +681,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 b23ef98

Please sign in to comment.