Skip to content

Commit b9c5c34

Browse files
committed
Add failing tests for SetexToAtx
1 parent 926cb9a commit b9c5c34

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

test/header-decrease.vader

+25
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,28 @@ Expect (no changes):
8989
##### e
9090

9191
###### f
92+
93+
Given markdown;
94+
a
95+
=
96+
97+
b
98+
-
99+
100+
Execute (HeaderIncrease with setext headers):
101+
:HeaderIncrease
102+
103+
Expect (convert to atx headers):
104+
## a
105+
106+
### b
107+
108+
Given markdown;
109+
a
110+
-
111+
112+
Execute (HeaderDecrease with setext headers):
113+
:HeaderDecrease
114+
115+
Expect (convert to atx headers):
116+
# a

test/setextoatx.vader

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Given markdown;
2+
# a
3+
4+
a
5+
=
6+
7+
## b
8+
9+
b
10+
-
11+
12+
Execute (SetexToAtx):
13+
:SetexToAtx
14+
15+
Expect (convert setex-style headings to atx):
16+
# a
17+
18+
# a
19+
20+
## b
21+
22+
## b

0 commit comments

Comments
 (0)