Skip to content

Commit 8bc1f42

Browse files
GenaBitutivie
authored andcommitted
fix(nbsp): fix replacing of nbsp with regular spaces
1 parent cf84bdb commit 8bc1f42

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/showdown.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/showdown.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/showdown.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/showdown.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/converter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ showdown.Converter = function (converterOptions) {
287287
text = text.replace(/\r\n/g, '\n'); // DOS to Unix
288288
text = text.replace(/\r/g, '\n'); // Mac to Unix
289289

290-
// Stardardize line spaces (nbsp causes trouble in older browsers and some regex flavors)
291-
text = text.replace(/\u00A0/g, ' ');
290+
// Stardardize line spaces
291+
text = text.replace(/\u00A0/g, ' ');
292292

293293
if (options.smartIndentationFix) {
294294
text = rTrimInputText(text);

0 commit comments

Comments
 (0)