Skip to content
New issue

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

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

Already on GitHub? # to your account

Output breaks with lists #15

Open
Matheus-W-Ws-Work opened this issue Nov 1, 2021 · 2 comments
Open

Output breaks with lists #15

Matheus-W-Ws-Work opened this issue Nov 1, 2021 · 2 comments

Comments

@Matheus-W-Ws-Work
Copy link

when using the following inputs, the output put one list inside the other

Version 1:
<ul>
<li style="text-align: justify;">a title
</ul>
<ul style="list-style-type: circle;">
<li>a text
</ul>

Version 2:
<ul>
<li>other title
</ul>
<ul style="list-style-type: circle">
<li>other text
</ul>

Result:

  • a
  • other title
    • aother text
@mraaroncruz
Copy link

mraaroncruz commented Jun 8, 2022

It's probably because your HTML is invalid (no closing <li> tags)
Or maybe since you didn't use code blocks in your comment, it printed them weird, like the first version of this message.

@bdurrer
Copy link

bdurrer commented Aug 9, 2022

It's probably because your HTML is invalid (no closing <li> tags)

according to the spec, LI tags do not have to be closed

The end tag can be omitted if the list item is immediately followed by another li element, or if there is no more content in its parent element.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li

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

No branches or pull requests

3 participants