mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: auto-quote should not trigger when the first " is preceded by bbcode-like garbage.
This commit is contained in:
2
vendor/assets/javascripts/better_markdown.js
vendored
2
vendor/assets/javascripts/better_markdown.js
vendored
@@ -662,7 +662,7 @@
|
||||
return [consumed, null, nodes];
|
||||
}
|
||||
|
||||
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ), patterns );
|
||||
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ), patterns, [text.substr(0, consumed)]);
|
||||
consumed += res[ 0 ];
|
||||
// Add any returned nodes.
|
||||
nodes.push.apply( nodes, res.slice( 1 ) );
|
||||
|
||||
Reference in New Issue
Block a user