How to render consecutive lists...

Jay Martin's Avatar

Jay Martin

10 Oct, 2011 11:06 PM

This doesn't appear to render properly:

  1. Bird
  2. McHale
  3. Parish

  4. Red

  5. Green
  6. Blue

The second set of bullets always takes the characteristics of the first. If you put regular text in between it fixes it, but it fundamentally means you can't have two different list types consecutively. Is that true?

  1. 1 Posted by Jay Martin on 10 Oct, 2011 11:09 PM

    Jay Martin's Avatar

    OK, so you use markdown to format the posts. Sigh.

    \1. Bird \2. McHale \3. Parish

    * Red * Green * Blue

  2. 2 Posted by Jay Martin on 10 Oct, 2011 11:11 PM

    Jay Martin's Avatar

    One more time:

    1.  Bird
    2.  McHale
    3.  Parish
    
    *   Red
    *   Green
    *   Blue
    
  3. Support Staff 3 Posted by Brett on 10 Oct, 2011 11:15 PM

    Brett's Avatar

    Hi Jay,

    This is true. You have to have some kind of separating element between the lists. Items at the same indentation level are considered to be part of the list until a non-list element is encountered, and any list beginning with a number is rendered as an ordered list. This is a function of MultiMarkdown, not Marked. If you want to file a ticket, you can check in at <http://github.com/fletcher/peg-multimarkdown/issues>.

  4. Support Staff 4 Posted by Brett on 10 Oct, 2011 11:18 PM

    Brett's Avatar

    By the way, one easy solution is to use - - - or *** on its own line between the lists to create a horizontal rule. This will break to the next list type, and the <hr> tag can be styled out using CSS fairly easily, if that's compatible with the rest of your styling (i.e. the horizontal rule serves no other purpose in your content layout).

  5. 5 Posted by Jay Martin on 10 Oct, 2011 11:21 PM

    Jay Martin's Avatar

    Thanks, I suspected as much.

  6. Brett closed this discussion on 10 Oct, 2011 11:23 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