diff --git a/src/parser.js b/src/parser.js index 0b2b98bb..a6f133ff 100644 --- a/src/parser.js +++ b/src/parser.js @@ -183,7 +183,7 @@ define(['./markdown_helpers', './core'], function(MarkdownHelpers, Markdown) { // __foo__ is reserved and not a pattern if ( i.match( /^__.*__$/) ) continue; - var l = i.replace( /([\\.*+?^$|()\[\]{}])/g, "\\$1" ) + var l = i.replace( /([\/\\.*+?^$|()\[\]{}])/g, "\\$1" ) .replace( /\n/, "\\n" ); patterns.push( i.length === 1 ? l : "(?:" + l + ")" ); }