Skip to content

Commit f8acffb

Browse files
committed
Merge pull request discourse#1692 from kasperpeulen/dollarfix
Allow dollar sign for inline dialects
2 parents a86d2b8 + af2d854 commit f8acffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vendor/assets/javascripts/better_markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
// __foo__ is reserved and not a pattern
336336
if ( i.match( /^__.*__$/) )
337337
continue;
338-
var l = i.replace( /([\\.*+?|()\[\]{}])/g, "\\$1" )
338+
var l = i.replace( /([\\.*+?^$|()\[\]{}])/g, "\\$1" )
339339
.replace( /\n/, "\\n" );
340340
patterns.push( i.length === 1 ? l : "(?:" + l + ")" );
341341
}

0 commit comments

Comments
 (0)