Skip to content

Commit

Permalink
Merge pull request #1258 from tomtheisen/gfm-strike
Browse files Browse the repository at this point in the history
GFM strikethrough compatibility
  • Loading branch information
styfle committed Jul 9, 2018
2 parents 86d9d70 + 22b17fe commit c7d487e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ inline.gfm = merge({}, inline.normal, {
.replace('email', inline._email)
.getRegex(),
_backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,
del: /^~~(?=\S)([\s\S]*?\S)~~/,
del: /^~+(?=\S)([\s\S]*?\S)~+/,
text: edit(inline.text)
.replace(']|', '~]|')
.replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|')
Expand Down
2 changes: 1 addition & 1 deletion test/specs/gfm/gfm-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('GFM 0.28 Task list items', function() {
describe('GFM 0.28 Strikethrough', function() {
var section = 'Strikethrough';

var shouldPassButFails = [469, 470];
var shouldPassButFails = [];

var willNotBeAttemptedByCoreTeam = [];

Expand Down

0 comments on commit c7d487e

Please sign in to comment.