File: lists3.text

package info (click to toggle)
python-markdown2 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,492 kB
  • sloc: python: 6,201; perl: 1,493; php: 865; makefile: 37
file content (71 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Single list tight:

* hi 
* there
* fella 

Single list loose in "paragraph mode":

* hey 

* there

* partner 

Single list loose with multiple paragraphs in an item:

* How you doin'?

* this item contains multiple paragraphs.

  More than one that is.

  Three to be exact.

* And this one is just a bunch of lines.
  Spliced together as a single item.
  A single paragraph.

A single list that looks like multiple lists
separated by a blank line:

* list 1
* with three
* elements

* still list 1
* adding four
* more
* elements

* sic, this is still list 1
* now with
* even
* more
* elements

There's no way to actually get multiple consecutive lists in Markdown.
Neither Markdown.pl nor python-markdown allow it either.
In a mailing list thread a few years back, John Gruber
[suggested using double blank lines](https://web.archive.org/web/20181229032814/http://article.gmane.org:80/gmane.text.markdown.general/2554)
to separate consecutive lists but no implementation does it.
For now you need to separate consecutive lists with unindented text:

* list 1
* with three
* elements

Cough.

* list 2
* with
* four
* elements

Cough. Cough.

* list 3
* with
* even
* more
* elements