Permalink
Browse files

restoring showdown

  • Loading branch information...
1 parent 82290a0 commit bd0986b15caf2de4f7fa4eb85d2279a3abcc6c7f @moschel moschel committed Dec 3, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 dist/documentjs/documentjs.js
  2. +1 −1 showdown.js
@@ -1197,7 +1197,7 @@
// Smart processing for ampersands and angle brackets that need to be encoded.
// Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:
// http://bumppo.net/projects/amputator/
- text = text.replace(new RegExp("&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)","g"), "&");
+ text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&");
// Encode naked <'s
text = text.replace(/<(?![a-z\/?\$!])/gi, "&lt;");
View
@@ -1042,7 +1042,7 @@ steal.then(function() {
// Smart processing for ampersands and angle brackets that need to be encoded.
// Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:
// http://bumppo.net/projects/amputator/
- text = text.replace(new RegExp("&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)","g"), "&amp;");
+ text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&amp;");
// Encode naked <'s
text = text.replace(/<(?![a-z\/?\$!])/gi, "&lt;");

0 comments on commit bd0986b

Please sign in to comment.