]> git.cworth.org Git - notmuch-wiki/commit
Markdown doc specifies that list item may have paragraphs if those
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 21 Mar 2012 20:16:04 +0000 (22:16 +0200)
committerTomi Ollila <tomi.ollila@iki.fi>
Wed, 21 Mar 2012 20:16:04 +0000 (22:16 +0200)
commit267896cff2355b9ba5b30e851267b8a98288662f
tree6169eb8e70997d5935feba78e02b80f965fcc057
parent10cbc1a59c3e0e3b0119ff9493d26c124b82fe05
Markdown doc specifies that list item may have paragraphs if those
are indented by 4 spaces (or a tab) from current list item marker
indentation (paragraph meaning there is empty line in between).

If there is empty line and next line is not indented 4 chars then
that should end the above list. This doesn't happen in all markdown
implementations.

In our NEWS case this problem exists in release 0.6 documentation.

It can be avoided by removing 2 leading spaces in lines that are not
list items and requiring all that indents are 0, 2, and 4+ (to make
regexp below work).

Nested lists are supported but one needs to be more careful with
markup there (as the hack below works only on first level).

( The regexp in newssplit.pl mentioned above is
s/^[ ][ ]// unless /^[ ][ ](?:[\s*+-]|\d+\.)\s/; ).
16 files changed:
news/release-0.10.1.mdwn
news/release-0.10.2.mdwn
news/release-0.10.mdwn
news/release-0.11.1.mdwn
news/release-0.11.mdwn
news/release-0.12.mdwn
news/release-0.2.mdwn
news/release-0.3.1.mdwn
news/release-0.3.mdwn
news/release-0.4.mdwn
news/release-0.5.mdwn
news/release-0.6.1.mdwn
news/release-0.6.mdwn
news/release-0.7.mdwn
news/release-0.8.mdwn
news/release-0.9.mdwn