2

If I simply put a bare <li>...</li> Element like below in my post, without wrapping it in a <ol>...</ol> or <ul>...</ul> as usual, it still creates an unordered list item with a bullet point, but the indentation is messed up: Text starts at the left text area border and the bullet point is outside of it.

<li>See this example</li>

  • See this example
  • The same happens also if the enclosing list tags are somehow misspelled or not closed properly.


    I believe it should look like a regular unordered list, as created by either this HTML or Markdown snippet below:

    <ul><li>HTML</li></ul>
    - Markdown
    
    • HTML
    • Markdown
    5

    Eh. Using plain HTML within posts is mostly supported, but not really encouraged - especially not when there are Markdown equivalents. If you choose to use HTML instead anyway, it's on you to make sure it's actually correct.

    In other words, "garbage in, garbage out" is the expected behaviour here.

    • Yeah, I agree with you on preferring Markdown. The issue above came to my attention in a new user's post. I edited it, discovered the described pattern, and replaced it with Markdown. Still, new users quite often tend to try formatting with HTML as they don't know (about) Markdown, and might do it wrong. The outcome in this case just looks really weird. – Byte Commander May 13 '18 at 22:17
    • 1
      @ByteCommander much of this page is made up of lists. These comments are lists. Care will have to be taken when changing the style for these orphan lis that it doesn't inadvertently break other things. Probably not worth the effort, when editors have to clean up a lot of formatting anyway. (I recently saw a new user do text...`code` commands `code` text..., so that only code was in code formatting and the actual commands weren't. :|) We have to edit those anyway. – muru May 14 '18 at 1:24

    You must log in to answer this question.

    Not the answer you're looking for? Browse other questions tagged .