Merge pull request #1258 from tomtheisen/gfm-strike

GFM strikethrough compatibility
This commit is contained in:
Steven 2018-07-09 12:34:01 -04:00 committed by GitHub
commit c7d487e452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.!#$%&\'*+/=?^_`{\\|}~-]+@|')

View File

@ -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 = [];