Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle lists with line breaks between items #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

t0v
Copy link

@t0v t0v commented Oct 10, 2018

Bug:
if ordered list or unordered list contains line breaks <br> those will be count as list items <li> and they cause extra (empty) numbered (or bulleted) items.

e.g.
<ol><br><li>foo</li><br><li>bar</li></ol>
would output
1.
2. foo
3.
4. bar

which seems wrong to be.

Fix:
handle only <li> children of the ordered and unordered lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant