jdpage / w.pl

A small wiki
0 stars 1 forks source link

Markdown Compliance for Lists #30

Open jdpage opened 8 years ago

jdpage commented 8 years ago

Replace Textile-style ordered lists with Markdown-style ordered lists.

At least get non-nested lists working right... adding nested lists is a non-breaking change, more-or-less.

Reference: http://spec.commonmark.org/0.21/#list-items

woodrowbarlow commented 8 years ago

right now, markdown lists markers (the asterisk for unordered lists and the octothorpe for ordered lists) need to be the first character on the line in order to be rendered. it would be nice if they could be preceded by whitespace or perhaps at least one space.

although top-level list items don't need whitespace before the marker to be correct, the most common convention seems to be (in my experience) to place one space before the marker in order to visually indent it a bit from paragraph text.

this will be necessary anyway if you want to support nested lists.