diff --git a/lib/marked.js b/lib/marked.js index 2696019cda..5e057c4e94 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -137,7 +137,6 @@ Lexer.prototype.lex = function(src) { src = src .replace(/\r\n|\r/g, '\n') .replace(/\t/g, ' ') - .replace(/\u00a0/g, ' ') .replace(/\u2424/g, '\n'); return this.token(src, true); diff --git a/test/tests/space.html b/test/tests/space.html new file mode 100644 index 0000000000..31bd6c0fae --- /dev/null +++ b/test/tests/space.html @@ -0,0 +1 @@ +

This colon follows un unbreakable space : this should be preserved. There are other spaces, like the en space or the em space. There are also a figure space or a punctuation space.

diff --git a/test/tests/space.text b/test/tests/space.text new file mode 100644 index 0000000000..7ee9b340c4 --- /dev/null +++ b/test/tests/space.text @@ -0,0 +1 @@ +This colon follows un unbreakable space : this should be preserved. There are other spaces, like the en space or the em space. There are also a figure space or a punctuation space.