How to render consecutive lists...
This doesn't appear to render properly:
- Bird
- McHale
-
Parish
-
Red
- Green
- 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?
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
1 Posted by Jay Martin on 10 Oct, 2011 11:09 PM
OK, so you use markdown to format the posts. Sigh.
\1. Bird \2. McHale \3. Parish
* Red * Green * Blue
2 Posted by Jay Martin on 10 Oct, 2011 11:11 PM
One more time:
Support Staff 3 Posted by Brett on 10 Oct, 2011 11:15 PM
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>.
Support Staff 4 Posted by Brett on 10 Oct, 2011 11:18 PM
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 Posted by Jay Martin on 10 Oct, 2011 11:21 PM
Thanks, I suspected as much.
Brett closed this discussion on 10 Oct, 2011 11:23 PM.