mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
Applied markdown-js fixes from upstream
This commit is contained in:
parent
1aee217a61
commit
d16b4487d5
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…
x
Reference in New Issue
Block a user