diff --git a/dist/showdown.js b/dist/showdown.js index 4638e20..61b604d 100644 Binary files a/dist/showdown.js and b/dist/showdown.js differ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index f6edb21..dacc764 100644 Binary files a/dist/showdown.js.map and b/dist/showdown.js.map differ diff --git a/dist/showdown.min.js b/dist/showdown.min.js index f1a16ba..30c19ef 100644 Binary files a/dist/showdown.min.js and b/dist/showdown.min.js differ diff --git a/dist/showdown.min.js.map b/dist/showdown.min.js.map index 928dc3f..2c7f5c4 100644 Binary files a/dist/showdown.min.js.map and b/dist/showdown.min.js.map differ diff --git a/src/converter.js b/src/converter.js index bacf033..9760b62 100644 --- a/src/converter.js +++ b/src/converter.js @@ -268,6 +268,9 @@ 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, ' '); + if (options.smartIndentationFix) { text = rTrimInputText(text); }