Skip to content

Commit

Permalink
fix(nbsp): fix replacing of nbsp with regular spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
GenaBitu authored and tivie committed Oct 16, 2018
1 parent cf84bdb commit 8bc1f42
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/converter.js
Expand Up @@ -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);
Expand Down

0 comments on commit 8bc1f42

Please sign in to comment.