From 8bc1f42befbeba989ff7978e5f874c3893cc8a94 Mon Sep 17 00:00:00 2001 From: GenaBitu Date: Mon, 7 May 2018 20:14:58 +0200 Subject: [PATCH] fix(nbsp): fix replacing of nbsp with regular spaces --- dist/showdown.js | Bin 141425 -> 141367 bytes dist/showdown.js.map | Bin 397074 -> 396906 bytes dist/showdown.min.js | Bin 67225 -> 67230 bytes dist/showdown.min.js.map | Bin 76332 -> 76332 bytes src/converter.js | 4 ++-- 5 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/showdown.js b/dist/showdown.js index e26be7bb262cd05e78e2c14e48d72b6a06306618..10b35f5ac1da6bae26e4016d8667e0c63db3ee89 100644 GIT binary patch delta 43 zcmex(fn)mxj)pCaJEf-^9%qymC^ax}G|*4iQBYUQODZm~ZkLl`+%6}>6wCtvVv`M& delta 102 zcmdmff#c%^j)pCaJEiRvH1d*)3lx$QON&#B6-tWoOOtX^6*BV_@^eyBixiTI^2>`; zi;5Kz^HLOw^K(-bic-^4D-_al63g<7iZ!Pf9%Gc|E;TT4G|*4iQBYTCeAJTWC8rxiGYc`9J5QhZlu4z% v?lvP3GXXL4_PX0FTcxKjT+1pwz4to{51U$EQgMNG`>gLQ+h=`etq=zQTSO!n delta 213 zcmV;`04o3LoEVax7=W|^i`tV=cm|h{cLEQSz>*4*Iuw`iW&#S6P^Su#848oY9tx9y zlnR%?%K{AnH=G{zuEyAlfYIAlaMqB0eF`I8olmGw# delta 16 YcmZ2;g=NhZmJO#jF?w%4vnin*07;|>iU0rr diff --git a/src/converter.js b/src/converter.js index a1a2904..fcd4f0f 100644 --- a/src/converter.js +++ b/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);