-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(markdown): fix empty block handling
Signed-off-by: Panos Vagenas <[email protected]>
- Loading branch information
Showing
3 changed files
with
114 additions
and
30 deletions.
There are no files selected for viewing
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,33 @@ | ||
Unordered list: | ||
|
||
- foo | ||
|
||
Empty unordered list: | ||
|
||
Ordered list: | ||
|
||
- bar | ||
|
||
Empty ordered list: | ||
|
||
Heading: | ||
|
||
# my heading | ||
|
||
Empty heading: | ||
|
||
Indented code block: | ||
|
||
``` | ||
print("Hi!") | ||
``` | ||
|
||
Empty indented code block: | ||
|
||
Fenced code block: | ||
|
||
``` | ||
print("Hello world!") | ||
``` | ||
|
||
Empty fenced code block: |
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,43 @@ | ||
Unordered list: | ||
|
||
- foo | ||
|
||
Empty unordered list: | ||
|
||
- | ||
|
||
Ordered list: | ||
|
||
1. bar | ||
|
||
Empty ordered list: | ||
|
||
1. | ||
|
||
Heading: | ||
|
||
# my heading | ||
|
||
Empty heading: | ||
|
||
# | ||
|
||
Indented code block: | ||
|
||
print("Hi!") | ||
|
||
Empty indented code block: | ||
|
||
|
||
|
||
Fenced code block: | ||
|
||
```python | ||
print("Hello world!") | ||
``` | ||
|
||
Empty fenced code block: | ||
|
||
``` | ||
``` |