diff --git a/test/specs/new/tasklist_basic.html b/test/specs/new/tasklist_basic.html new file mode 100644 index 0000000000..3dc424642b --- /dev/null +++ b/test/specs/new/tasklist_basic.html @@ -0,0 +1,11 @@ +

tight

+ +

loose

+ diff --git a/test/specs/new/tasklist_basic.md b/test/specs/new/tasklist_basic.md new file mode 100644 index 0000000000..d24daf4aae --- /dev/null +++ b/test/specs/new/tasklist_basic.md @@ -0,0 +1,9 @@ +# tight + +- [ ] item + +# loose + +- [ ] item 1 + +- [ ] item 2 diff --git a/test/unit/marked.test.js b/test/unit/marked.test.js index d7348a8666..b604c0103e 100644 --- a/test/unit/marked.test.js +++ b/test/unit/marked.test.js @@ -42,20 +42,6 @@ describe('marked unit', () => { }); }); - describe('task', () => { - it('space after checkbox', () => { - const html = marked.parse('- [ ] item'); - - assert.strictEqual(html, '\n'); - }); - - it('space after loose checkbox', () => { - const html = marked.parse('- [ ] item 1\n\n- [ ] item 2'); - - assert.strictEqual(html, '\n'); - }); - }); - describe('parseInline', () => { it('should parse inline tokens', () => { const md = '**strong** _em_';