two lists without separating text (corner case?)
weakish
weakish at gmail.com
Tue Feb 8 05:44:13 EST 2011
First we consider two lists with different type:
- foo
- bar
1. first
1. second
There are two interceptions:
a. one unordered list
b. one unordered list followed by one ordered list
Implementations conforming to a:
- Markdown.pl
- Python Markdown
- BlueCloth
- MarkdownJ
- markdown.lua,
- Showdown
Implementations conforming to b:
- PHP Markdown
- Text::Markdown
- Maruku
- Pandoc
- Discount
- PEG Markdown
I feel that option b is intuitive.
Then what about two lists of the same type?
- apple
- orange
* John
* Jane
Is this a) ONE or b) TWO list?
All markdown implementation mentioned above
intercept this as one list.
Again, I feel that option b (two list) is intuitive.
What's more, if we intercept this as one list,
then how can we write two lists without separating
text in markdown? I've no idea except using HTML:
- apple
- orange
<!-- Dear Markdown: I want two lists. -->
* John
* Jane
But I'm confusing when considering ordered lists:
1. foo
1. bar
2. apple
2. orange
One list or two?
What about this?
1. foo
2. bar
1. apple
2. orange
It seems ambiguous. In fact, I want
something like ReStructuredText:
1. foo
2. bar
1) apple
2) orange
For this one, I think there are two lists.
But this is not in markdown's syntax.
More information about the Markdown-Discuss
mailing list