python-markdownify
python-markdownify copied to clipboard
`wrap` option does not work inside list items
Bullet list entries are not wrapped when setting wrap=True.
I am running into the same issue.
@BioBox, @ryanmkurtz - currently, the wrapping code is implemented only for <p> tags. I agree that this is a limitation, but list items are tricky because they can contain mixes of block and inline content.
Until this is implemented, would you consider preprocessing your HTML to wrap your list-item content in <p> tags? If so, I can provide some Beautiful Soup code that might help.
I ended up just accepting that the wrap didn't work, which didn't stop me from achieving my goal. I've since moved on to other things. Thanks though!