Skip to content

Commit

Permalink
Merge pull request #1532 from UziTech/remove-substitutions
Browse files Browse the repository at this point in the history
remove substitutions
  • Loading branch information
joshbruce authored Aug 5, 2019
2 parents 74dd635 + f2de291 commit 620a27d
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>foo␤␤bar</p>

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

* a *

1 comment on commit 620a27d

@vercel
Copy link

@vercel vercel bot commented on 620a27d Aug 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.