File tree Expand file tree Collapse file tree 1 file changed +36
-27
lines changed Expand file tree Collapse file tree 1 file changed +36
-27
lines changed Original file line number Diff line number Diff line change 28
28
29
29
Execute (Toc setex headers):
30
30
:Toc
31
+ :setl modifiable
32
+ :%s/\m^\([^|]*|\)\{2} //
33
+ :setl nomodifiable nomodified
31
34
32
35
Expect (setex headers):
33
36
header 1
34
- header 2
35
- header 3
37
+ header 2
38
+ ### header 3
36
39
37
40
Given markdown;
38
41
# header 1
49
52
50
53
Execute (Toc atx headers):
51
54
:Toc
55
+ :setl modifiable
56
+ :%s/\m^\([^|]*|\)\{2} //
57
+ :setl nomodifiable nomodified
52
58
53
59
Expect (atx headers):
54
- header 1
55
- header 2
56
- header 3
60
+ # header 1
61
+ ## header 2
62
+ ### header 3
57
63
58
64
Given markdown;
59
65
ATX tests.
@@ -135,34 +141,37 @@ setex h2
135
141
136
142
Execute (Toc multiple headers):
137
143
:Toc
144
+ :setl modifiable
145
+ :%s/\m^\([^|]*|\)\{2} //
146
+ :setl nomodifiable nomodified
138
147
139
148
Expect (multiple headers):
140
- h1 space
141
- h1 nospace
142
- h1 2 spaces
143
- h1 trailing hash
144
- h2 space
145
- h2 nospace
146
- h2 trailing hash
147
- h3 space
148
- h3 nospace
149
- h3 trailing hash
150
- h4
151
- h5
152
- h6
153
- h1 before h2
154
- h2 between h1s
155
- h1 after h2
149
+ # h1 space
150
+ # h1 nospace
151
+ # h1 2 spaces
152
+ # h1 trailing hash #
153
+ ## h2 space
154
+ ## h2 nospace
155
+ ## h2 trailing hash ##
156
+ ### h3 space
157
+ ### h3 nospace
158
+ ### h3 trailing hash ###
159
+ #### h4
160
+ ##### h5
161
+ ###### h6
162
+ # h1 before h2
163
+ ## h2 between h1s
164
+ # h1 after h2
156
165
setex h1
157
- setex h2
166
+ setex h2
158
167
setex h1 single punctuation
159
168
setex h1 punctuation longer than header
160
169
setex h1 before atx
161
- atx h2
162
- atx h3
163
- atx h1
164
- setex h2
165
- atx h3 2
170
+ ## atx h2
171
+ ### atx h3
172
+ # atx h1
173
+ setex h2
174
+ ### atx h3 2
166
175
167
176
Execute:
168
177
:lclose
You can’t perform that action at this time.
0 commit comments