Skip to content

Commit 620a27d

Browse files
authored
Merge pull request #1532 from UziTech/remove-substitutions
remove substitutions
2 parents 74dd635 + f2de291 commit 620a27d

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

lib/marked.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ Lexer.lex = function(src, options) {
169169
Lexer.prototype.lex = function(src) {
170170
src = src
171171
.replace(/\r\n|\r/g, '\n')
172-
.replace(/\t/g, ' ')
173-
.replace(/\u00a0/g, ' ')
174-
.replace(/\u2424/g, '\n');
172+
.replace(/\t/g, ' ');
175173

176174
return this.token(src, true);
177175
};

test/specs/commonmark/commonmark.0.29.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,8 +2863,7 @@
28632863
"example": 353,
28642864
"start_line": 6322,
28652865
"end_line": 6326,
2866-
"section": "Emphasis and strong emphasis",
2867-
"shouldFail": true
2866+
"section": "Emphasis and strong emphasis"
28682867
},
28692868
{
28702869
"markdown": "foo*bar*\n",

test/specs/gfm/commonmark.0.29.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,8 +2863,7 @@
28632863
"example": 353,
28642864
"start_line": 6322,
28652865
"end_line": 6326,
2866-
"section": "Emphasis and strong emphasis",
2867-
"shouldFail": true
2866+
"section": "Emphasis and strong emphasis"
28682867
},
28692868
{
28702869
"markdown": "foo*bar*\n",

test/specs/new/substitutions.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>foo␤␤bar</p>
2+
3+
<p>* a *</p>

test/specs/new/substitutions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
foo␤␤bar
2+
3+
* a *

0 commit comments

Comments
 (0)