Skip to content

Commit 97e2157

Browse files
committed
Add test for external issue
Related-to: syntax-tree/mdast-util-directive#13.
1 parent 45032ec commit 97e2157

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,16 @@ test('content', async function (t) {
17461746
assert.equal(micromark(':::i\n- +\na', options()), '')
17471747
}
17481748
)
1749+
1750+
await t.test(
1751+
'should support line endings + spread in containers (syntax-tree/mdast-util-directive#13)',
1752+
async function () {
1753+
assert.equal(
1754+
micromark(' :::div\n* b\n\n c\n:::', options({'*': h})),
1755+
'<div>\n<ul>\n<li>b</li>\n</ul>\n<p>c</p>\n</div>'
1756+
)
1757+
}
1758+
)
17491759
})
17501760

17511761
/**

0 commit comments

Comments
 (0)