-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headings: headings can have up to 3 leading whitespace
- Loading branch information
Showing
3 changed files
with
126 additions
and
3 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,109 @@ | ||
--- | ||
source: src/test.rs | ||
assertion_line: 168 | ||
expression: output | ||
--- | ||
### h1-heading | ||
|
||
#### h2-heading | ||
|
||
3 leading whitespaces are okay for headings | ||
|
||
#### h2 heading | ||
|
||
# code block | ||
|
||
|
||
#### h2-heading-with-id {#some-id} | ||
|
||
Indented code block | ||
|
||
# Code comment | ||
a = 1; | ||
|
||
##### h3-heading | ||
|
||
```nix | ||
# A comment should not be shifted | ||
``` | ||
|
||
##### annother heading | ||
|
||
``` | ||
# Some pseudocode | ||
map a from b -> 1 | ||
``` | ||
|
||
##### indented (0-3) fences | ||
|
||
3 leading whitespaces are okay for code fences | ||
|
||
``` lang info | ||
# Some pseudocode | ||
map a from b -> 1 | ||
``` | ||
|
||
##### indented (0-3) fences asymmetric | ||
|
||
``` | ||
# Some pseudocode | ||
map a from b -> 1 | ||
``` | ||
|
||
##### More closing fences than opening | ||
|
||
```` | ||
# Some pseudocode | ||
map a from b -> 1 | ||
``````` | ||
|
||
##### Some heading | ||
|
||
````nix | ||
/** | ||
```nix | ||
# A nested comment should not be shifted | ||
``` | ||
*/ | ||
1 | ||
# A comment | ||
```` | ||
|
||
###### h4-heading | ||
|
||
Nested tilde fences | ||
|
||
~~~~~nix | ||
/* | ||
~~~~nix | ||
/** | ||
~~~nix | ||
# A nested comment should not be shifted | ||
42 | ||
~~~ | ||
*/ | ||
1 | ||
# A nested comment ^ | ||
~~~~ | ||
*/ | ||
# A comment ^ | ||
foo | ||
~~~~~ | ||
|
||
###### h5-heading | ||
|
||
Mixed fences | ||
|
||
~~~nix | ||
/** | ||
```nix | ||
# A nested comment should not be shifted | ||
``` | ||
*/ | ||
1 | ||
# A comment | ||
~~~ | ||
|
||
###### h6-heading | ||
|
||
This should be h6 as well |
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