Skip to content

Commit

Permalink
Add a test showing that list indentation is flexible already
Browse files Browse the repository at this point in the history
Closes #5.
  • Loading branch information
domenic committed Jul 24, 2015
1 parent 950c72f commit e0392db
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Ecmarkdown also allows HTML comments anywhere that does not otherwise disturb th

Lists are written as a series of lines, each starting with a number, e.g. `1.`. The first list item's number determines the starting number in the output (via `<ol start="x">`); subsequent list items' numbers are ignored.

Lists can be nested using multiples of exactly two spaces.
Lists can be nested. To do so, use any number of spaces to indent; as long as the number of spaces is consistent, list items will stay together in a nested list.

## Inline Formatting

Expand Down
11 changes: 11 additions & 0 deletions test/list-cases/flexible-indent-nested-list.ecmarkdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
1. Item 1
1. Item 1a
1. Item 1b
1. Item 2
1. Item 2a
1. Item 3
1. Item 4
1. Item 4a
1. Item 4ai
1. Item 4aii
1. Item 4b
25 changes: 25 additions & 0 deletions test/list-cases/flexible-indent-nested-list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<ol>
<li>Item 1
<ol>
<li>Item 1a</li>
<li>Item 1b</li>
</ol>
</li>
<li>Item 2
<ol>
<li>Item 2a</li>
</ol>
</li>
<li>Item 3</li>
<li>Item 4
<ol>
<li>Item 4a
<ol>
<li>Item 4ai</li>
<li>Item 4aii</li>
</ol>
</li>
<li>Item 4b</li>
</ol>
</li>
</ol>

0 comments on commit e0392db

Please sign in to comment.