mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Applied markdown-js fixes from upstream
This commit is contained in:
parent
1aee217a61
commit
d16b4487d5
1 changed files with 3 additions and 0 deletions
3
vendor/assets/javascripts/better_markdown.js
vendored
3
vendor/assets/javascripts/better_markdown.js
vendored
|
@ -1211,6 +1211,9 @@
|
|||
|
||||
"![": 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
|
||||
// allowed in there
|
||||
|
||||
|
|
Loading…
Reference in a new issue