Why do I get a <p> tag in some ordered lists but not others?

Brad Farris's Avatar

Brad Farris

06 Dec, 2012 03:51 PM

I have text that looks like this:

  1. First Item

    • Sub item
    • Sub Item
  2. Second Item

    • sub Item
    • sub item
  3. Third item

  4. Fourth Item

    • Sub Item

And it renders in Marked as

  1. First Item
    • Sub item
    • Sub Item
  2. Second Item
    • sub Item
    • sub item
  3. Third item

  4. Fourth Item
    • Sub Item

The

tag around the third item is throwing off the styling. Why is it on that item and not the others?

Brad

  1. Support Staff 1 Posted by Brett on 06 Dec, 2012 03:58 PM

    Brett's Avatar

    Standard Markdown behavior caused by the newlines between your items. Remove the newlines, remove the <p> tags.

  2. 2 Posted by Brad Farris on 07 Dec, 2012 05:46 PM

    Brad Farris's Avatar

    Thanks Brett;

  3. Brett closed this discussion on 09 Dec, 2012 02:34 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac