Skip to content

Commit

Permalink
Fix for code blocks in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
evilstreak committed Apr 22, 2013
1 parent 8bf9022 commit 340046a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@ Markdown.dialects.Gruber = {

ret.push( mk_block( x, b.trailing, b.lineNumber ) );
}
break;
else {
break;
}
}
return ret;
}
Expand Down
14 changes: 14 additions & 0 deletions test/features/code/in_lists.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
["html",
["ul",
["li",
["p",
"Loose list"
],
["pre",
["code",
"some code\n\nmore code"
]
]
]
]
]
5 changes: 5 additions & 0 deletions test/features/code/in_lists.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Loose list

some code

more code

0 comments on commit 340046a

Please sign in to comment.