-
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: lines with mutiple dashes being parsed as multilists
This input: `- - - a` causes trouble for the parser, since it interprets it as multiple sublists, where it should only interpert it as a list with a single list item. This commit fixes this behavior. Closes #312
- Loading branch information
Showing
11 changed files
with
100 additions
and
3 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
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,15 @@ | ||
<ul> | ||
<li>- - a</li> | ||
</ul> | ||
<p>a</p> | ||
<ul> | ||
<li>- * - - + a</li> | ||
</ul> | ||
<p>a</p> | ||
<ol> | ||
<li>2. 3. 4. 5.</li> | ||
</ol> | ||
<p>a</p> | ||
<ol> | ||
<li>2. 3. 4. 5. a</li> | ||
</ol> |
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,13 @@ | ||
- - - a | ||
|
||
a | ||
|
||
+ - * - - + a | ||
|
||
a | ||
|
||
1. 2. 3. 4. 5. | ||
|
||
a | ||
|
||
1. 2. 3. 4. 5. a |
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,8 @@ | ||
<ul> | ||
<li><p>- - a</p></li> | ||
<li><p>- * - - + a</p></li> | ||
</ul> | ||
<ol> | ||
<li><p>2. 3. 4. 5.</p></li> | ||
<li><p>2. 3. 4. 5. a</p></li> | ||
</ol> |
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,7 @@ | ||
- - - a | ||
|
||
+ - * - - + a | ||
|
||
1. 2. 3. 4. 5. | ||
|
||
1. 2. 3. 4. 5. a |
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,10 @@ | ||
<ul> | ||
<li>- | ||
a</li> | ||
</ul> | ||
<p>fooo</p> | ||
<ul> | ||
<li><p>- - aaaaa</p> | ||
<p>bbbbb</p></li> | ||
</ul> | ||
|
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,10 @@ | ||
- - | ||
a | ||
|
||
|
||
fooo | ||
|
||
|
||
- - - aaaaa | ||
|
||
bbbbb |