Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove substitutions #1532

Merged
merged 2 commits into from Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 *