mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Workaround markdown-js links parser bug
This commit is contained in:
2
vendor/assets/javascripts/better_markdown.js
vendored
2
vendor/assets/javascripts/better_markdown.js
vendored
@@ -1310,7 +1310,7 @@
|
||||
// back based on if there a matching ones in the url
|
||||
// ([here](/url/(test))
|
||||
// The parens have to be balanced
|
||||
var m = text.match( /^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/ );
|
||||
var m = text.match( /^\s*\([ \t]*([^"'\s]*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/ );
|
||||
if ( m ) {
|
||||
var url = m[1].replace(/\s+$/, '');
|
||||
consumed += m[0].length;
|
||||
|
||||
Reference in New Issue
Block a user