mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
support dollar sign in inline dialects
In this way it is possible to use the dollar ($) sign as a startpoint for an inline dialect.
This commit is contained in:
parent
8df30fa48e
commit
a7cb139238
1 changed files with 1 additions and 1 deletions
2
vendor/assets/javascripts/better_markdown.js
vendored
2
vendor/assets/javascripts/better_markdown.js
vendored
|
@ -335,7 +335,7 @@
|
||||||
// __foo__ is reserved and not a pattern
|
// __foo__ is reserved and not a pattern
|
||||||
if ( i.match( /^__.*__$/) )
|
if ( i.match( /^__.*__$/) )
|
||||||
continue;
|
continue;
|
||||||
var l = i.replace( /([\\.*+?|()\[\]{}])/g, "\\$1" )
|
var l = i.replace( /([\\.*+?|()\[\]${}])/g, "\\$1" )
|
||||||
.replace( /\n/, "\\n" );
|
.replace( /\n/, "\\n" );
|
||||||
patterns.push( i.length === 1 ? l : "(?:" + l + ")" );
|
patterns.push( i.length === 1 ? l : "(?:" + l + ")" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue