Skip to content

Commit a2827b8

Browse files
authored
Merge pull request markedjs#1258 from tomtheisen/gfm-strike
GFM strikethrough compatibility
2 parents b480ff5 + 5021bfd commit a2827b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/marked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ inline.gfm = merge({}, inline.normal, {
588588
.replace('email', inline._email)
589589
.getRegex(),
590590
_backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,
591-
del: /^~~(?=\S)([\s\S]*?\S)~~/,
591+
del: /^~+(?=\S)([\s\S]*?\S)~+/,
592592
text: edit(inline.text)
593593
.replace(']|', '~]|')
594594
.replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|')

test/specs/gfm/gfm-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('GFM 0.28 Task list items', function() {
5656
describe('GFM 0.28 Strikethrough', function() {
5757
var section = 'Strikethrough';
5858

59-
var shouldPassButFails = [469, 470];
59+
var shouldPassButFails = [];
6060

6161
var willNotBeAttemptedByCoreTeam = [];
6262

0 commit comments

Comments
 (0)