Applied markdown-js fixes from upstream

This commit is contained in:
Robin Ward 2014-01-10 13:04:15 -05:00
parent 1aee217a61
commit d16b4487d5

View file

@ -1211,6 +1211,9 @@
"![": function image( text ) { "![": function image( text ) {
// Without this guard V8 crashes hard on the RegExp
if (text.indexOf('(') >= 0 && text.indexOf(')') === -1) { return; }
// Unlike images, alt text is plain text only. no other elements are // Unlike images, alt text is plain text only. no other elements are
// allowed in there // allowed in there