diff --git a/lib/index.js b/lib/index.js index dbc42af..e2b0fcf 100644 --- a/lib/index.js +++ b/lib/index.js @@ -106,6 +106,7 @@ const blockOrCaption = convertElement([ 'hr', // Flow content 'html', // Page 'legend', // Flow content + 'li', // Lists (as `display: list-item`) 'listing', // Flow content (legacy) 'main', // Flow content 'menu', // Lists diff --git a/test.js b/test.js index 95aeed6..6bb81f5 100644 --- a/test.js +++ b/test.js @@ -358,6 +358,13 @@ test('non-normal white-space', async function (t) { '\tDelta \n\techo\t\n' ) }) + + await t.test('should support `li` elements', async function () { + assert.equal( + toText(h('ul', [h('li', 'Foxtrot'), h('li', 'Golf')])), + 'Foxtrot\nGolf' + ) + }) }) test('more whitespace', async function (t) {