Browse Source

fix: replaces \u00A0 with  

Closes #521
GenaBitu 7 years ago
parent
commit
f20dc75024
5 changed files with 6 additions and 7 deletions
  1. 4 4
      dist/showdown.js
  2. 0 0
      dist/showdown.js.map
  3. 0 1
      dist/showdown.min.js
  4. 0 0
      dist/showdown.min.js.map
  5. 2 2
      src/converter.js

File diff suppressed because it is too large
+ 4 - 4
dist/showdown.js


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.js.map


File diff suppressed because it is too large
+ 0 - 1
dist/showdown.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.min.js.map


+ 2 - 2
src/converter.js

@@ -287,8 +287,8 @@ showdown.Converter = function (converterOptions) {
     text = text.replace(/\r\n/g, '\n'); // DOS to Unix
     text = text.replace(/\r/g, '\n'); // Mac to Unix
 
-    // Stardardize line spaces (nbsp causes trouble in older browsers and some regex flavors)
-    text = text.replace(/\u00A0/g, ' ');
+    // Stardardize line spaces
+    text = text.replace(/\u00A0/g, ' ');
 
     if (options.smartIndentationFix) {
       text = rTrimInputText(text);

Some files were not shown because too many files changed in this diff