Skip to content

Commit

Permalink
Merge pull request markedjs#1532 from UziTech/remove-substitutions
Browse files Browse the repository at this point in the history
remove substitutions
  • Loading branch information
joshbruce committed Aug 5, 2019
2 parents 79ad703 + 3385ac8 commit a6e0705
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions lib/marked.js
Expand Up @@ -169,9 +169,7 @@ Lexer.lex = function(src, options) {
Lexer.prototype.lex = function(src) {
src = src
.replace(/\r\n|\r/g, '\n')
.replace(/\t/g, ' ')
.replace(/\u00a0/g, ' ')
.replace(/\u2424/g, '\n');
.replace(/\t/g, ' ');

return this.token(src, true);
};
Expand Down
3 changes: 1 addition & 2 deletions test/specs/commonmark/commonmark.0.29.json
Expand Up @@ -2863,8 +2863,7 @@
"example": 353,
"start_line": 6322,
"end_line": 6326,
"section": "Emphasis and strong emphasis",
"shouldFail": true
"section": "Emphasis and strong emphasis"
},
{
"markdown": "foo*bar*\n",
Expand Down
3 changes: 1 addition & 2 deletions test/specs/gfm/commonmark.0.29.json
Expand Up @@ -2863,8 +2863,7 @@
"example": 353,
"start_line": 6322,
"end_line": 6326,
"section": "Emphasis and strong emphasis",
"shouldFail": true
"section": "Emphasis and strong emphasis"
},
{
"markdown": "foo*bar*\n",
Expand Down
3 changes: 3 additions & 0 deletions test/specs/new/substitutions.html
@@ -0,0 +1,3 @@
<p>foo␤␤bar</p>

<p>* a *</p>
3 changes: 3 additions & 0 deletions test/specs/new/substitutions.md
@@ -0,0 +1,3 @@
foo␤␤bar

* a *

0 comments on commit a6e0705

Please sign in to comment.