Skip to content

Commit c13a7aa

Browse files
committed
remove u00a0. fixes markedjs#52 and possibly markedjs#81.
1 parent 0c74e75 commit c13a7aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/marked.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ Lexer.lex = function(src, options) {
119119
Lexer.prototype.lex = function(src) {
120120
src = src
121121
.replace(/\r\n|\r/g, '\n')
122-
.replace(/\t/g, ' ');
122+
.replace(/\t/g, ' ')
123+
.replace(/\u00a0/g, ' ')
124+
.replace(/\u2424/g, '\n');
123125

124126
return this.token(src, true);
125127
};

0 commit comments

Comments
 (0)