-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lists): fix sublists inconsistent behavior
Nested ul and ol lists behave inconsistently in the requirement of having 3 spaces to be considered a nested list. This fix changes the requirement to only one space in both cases. Closes #299
- Loading branch information
Showing
7 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<ul> | ||
<li>one</li> | ||
</ul> | ||
<ol> | ||
<li>two</li> | ||
</ol> | ||
<p>foo</p> | ||
<ul> | ||
<li>one | ||
|
||
<ol> | ||
<li>two</li></ol></li> | ||
</ul> | ||
<p>foo</p> | ||
<ul> | ||
<li>one | ||
|
||
<ul> | ||
<li>two</li></ul></li> | ||
</ul> |
12 changes: 12 additions & 0 deletions
12
test/issues/#299.nested-ordered-unordered-list-inconsistent-behavior.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
* one | ||
1. two | ||
|
||
foo | ||
|
||
* one | ||
1. two | ||
|
||
foo | ||
|
||
* one | ||
* two |