Applied markdown-js fixes from upstream
This commit is contained in:
parent
1aee217a61
commit
d16b4487d5
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue