forked from lepture/mistune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhook_toc.txt
More file actions
126 lines (112 loc) · 1.95 KB
/
Copy pathhook_toc.txt
File metadata and controls
126 lines (112 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Table of Contents
## Simple TOC
```````````````````````````````` example
# H1
content
## H2
.
<h1 id="toc_1">H1</h1>
<p>content</p>
<h2 id="toc_2">H2</h2>
<ul>
<li><a href="#toc_1">H1</a>
<ul>
<li><a href="#toc_2">H2</a></li>
</ul>
</li>
</ul>
````````````````````````````````
## Complex TOC
```````````````````````````````` example
# H1
## H2
### H3
#### H4
# H1 B
# H1 `C`
.
<h1 id="toc_1">H1</h1>
<h2 id="toc_2">H2</h2>
<h3 id="toc_3">H3</h3>
<h4>H4</h4>
<h1 id="toc_4">H1 B</h1>
<h1 id="toc_5">H1 <code>C</code></h1>
<ul>
<li><a href="#toc_1">H1</a>
<ul>
<li><a href="#toc_2">H2</a>
<ul>
<li><a href="#toc_3">H3</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#toc_4">H1 B</a></li>
<li><a href="#toc_5">H1 C</a></li>
</ul>
````````````````````````````````
## Insane TOC
```````````````````````````````` example
# H1
### H3
## H2
#### H4
### H3 B
# H1 B
.
<h1 id="toc_1">H1</h1>
<h3 id="toc_2">H3</h3>
<h2 id="toc_3">H2</h2>
<h4>H4</h4>
<h3 id="toc_4">H3 B</h3>
<h1 id="toc_5">H1 B</h1>
<ul>
<li><a href="#toc_1">H1</a>
<ul>
<li><a href="#toc_2">H3</a></li>
<li><a href="#toc_3">H2</a>
<ul>
<li><a href="#toc_4">H3 B</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#toc_5">H1 B</a></li>
</ul>
````````````````````````````````
```````````````````````````````` example
### H3
## H2
# H1
.
<h3 id="toc_1">H3</h3>
<h2 id="toc_2">H2</h2>
<h1 id="toc_3">H1</h1>
<ul>
<li><a href="#toc_1">H3</a></li>
<li><a href="#toc_2">H2</a></li>
<li><a href="#toc_3">H1</a></li>
</ul>
````````````````````````````````
## Link in Heading
```````````````````````````````` example
# [foo](/bar)
# [baz][ref]
[ref]: /quux
.
<h1 id="toc_1"><a href="/bar">foo</a></h1>
<h1 id="toc_2"><a href="/quux">baz</a></h1>
<ul>
<li><a href="#toc_1">foo</a></li>
<li><a href="#toc_2">baz</a></li>
</ul>
````````````````````````````````
## HTML in Heading
```````````````````````````````` example
# <em>H1</em>
.
<h1 id="toc_1"><em>H1</em></h1>
<ul>
<li><a href="#toc_1">H1</a></li>
</ul>
````````````````````````````````