Skip to content

Commit 45175bd

Browse files
committed
Improved tests and added more
1 parent dfba03a commit 45175bd

16 files changed

+500
-14
lines changed

test/fixture/after-w-depth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6-
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
6+
77

88
- [Hello](#hello)
99

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Article
3+
4+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
5+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6+
7+
8+
- [Hello](#markdown-header-hello)
9+
- [World](#markdown-header-world)
10+
- [Hi](#markdown-header-hi)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
14+
## Hello
15+
16+
### World
17+
18+
### Hi
19+
20+
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Article
3+
4+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
5+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6+
7+
8+
- [Hello](#hello)
9+
- [World](#world)
10+
- [Hi](#hi)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
14+
## Hello
15+
16+
### World
17+
18+
### Hi
19+
20+
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Article
3+
4+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
5+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6+
7+
8+
- [Hello](#hello)
9+
- [World](#world)
10+
- [Hi](#hi)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
14+
## Hello
15+
16+
### World
17+
18+
### Hi
19+
20+
21+

test/fixture/after-w-notitle.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Article
3+
4+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
5+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6+
7+
8+
- [Hello](#hello)
9+
- [World](#world)
10+
- [Hi](#hi)
11+
12+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
13+
14+
## Hello
15+
16+
### World
17+
18+
### Hi
19+
20+
21+

test/fixture/after-w-title.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6-
6+
***Custom title Table of Contents***
77

88
- [Hello](#hello)
99
- [World](#world)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [Article](#article)
6+
- [Hello](#hello)
7+
8+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
9+
10+
11+
# Article
12+
13+
14+
## Hello
15+
16+
### World
17+
18+
### Hi
19+
20+
21+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [Article](#markdown-header-article)
6+
- [Hello](#markdown-header-hello)
7+
- [World](#markdown-header-world)
8+
- [Hi](#markdown-header-hi)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
11+
12+
13+
# Article
14+
15+
16+
## Hello
17+
18+
### World
19+
20+
### Hi
21+
22+
23+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [Article](#article)
6+
- [Hello](#hello)
7+
- [World](#world)
8+
- [Hi](#hi)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
11+
12+
13+
# Article
14+
15+
16+
## Hello
17+
18+
### World
19+
20+
### Hi
21+
22+
23+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4+
5+
- [Article](#article)
6+
- [Hello](#hello)
7+
- [World](#world)
8+
- [Hi](#hi)
9+
10+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
11+
12+
13+
# Article
14+
15+
16+
## Hello
17+
18+
### World
19+
20+
### Hi
21+
22+
23+

0 commit comments

Comments
 (0)