Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const blockOrCaption = convertElement([
'hr', // Flow content
'html', // Page
'legend', // Flow content
'li', // Lists
'listing', // Flow content (legacy)
'main', // Flow content
'menu', // Lists
Expand Down
7 changes: 7 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down