mirror of
https://github.com/markedjs/marked
synced 2024-11-22 17:37:24 +00:00
Merge pull request #1258 from tomtheisen/gfm-strike
GFM strikethrough compatibility
This commit is contained in:
commit
c7d487e452
@ -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.!#$%&\'*+/=?^_`{\\|}~-]+@|')
|
||||
|
@ -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 = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user