Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/specs/new/tasklist_basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h1>tight</h1>
<ul>
<li><input disabled="" type="checkbox"> item</li>
</ul>
<h1>loose</h1>
<ul>
<li><p><input disabled="" type="checkbox"> item 1</p>
</li>
<li><p><input disabled="" type="checkbox"> item 2</p>
</li>
</ul>
9 changes: 9 additions & 0 deletions test/specs/new/tasklist_basic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# tight

- [ ] item

# loose

- [ ] item 1

- [ ] item 2
14 changes: 0 additions & 14 deletions test/unit/marked.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@ describe('marked unit', () => {
});
});

describe('task', () => {
it('space after checkbox', () => {
const html = marked.parse('- [ ] item');

assert.strictEqual(html, '<ul>\n<li><input disabled="" type="checkbox"> item</li>\n</ul>\n');
});

it('space after loose checkbox', () => {
const html = marked.parse('- [ ] item 1\n\n- [ ] item 2');

assert.strictEqual(html, '<ul>\n<li><p><input disabled="" type="checkbox"> item 1</p>\n</li>\n<li><p><input disabled="" type="checkbox"> item 2</p>\n</li>\n</ul>\n');
});
});

describe('parseInline', () => {
it('should parse inline tokens', () => {
const md = '**strong** _em_';
Expand Down