File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,32 @@ div.highlighter-rouge {
119
119
}
120
120
h5 {
121
121
font-size : 1.16em ;
122
+ counter-increment : h5- section;
123
+ ~ h4 {
124
+ counter-reset : h5- section;
125
+ }
126
+ > span ::before {
127
+ content : counter (h2-section ) " ." counter (h3-section ) " ." counter (h4-section ) " ."
128
+ counter (h5-section ) " ." ;
129
+ }
122
130
}
123
131
h6 {
124
132
font-size : 1em ;
133
+ counter-increment : h6- section;
134
+ ~ h5 {
135
+ counter-reset : h6- section;
136
+ }
137
+ > span ::before {
138
+ content : counter (h2-section ) " ." counter (h3-section ) " ." counter (h4-section ) " ."
139
+ counter (h5-section ) " ." counter (h6-section ) " ." ;
140
+ }
125
141
}
126
142
127
143
h2 , h3 {
128
144
@include markdown-header ;
129
145
}
130
146
131
- h2 , h3 , h4 , h5 {
147
+ h2 , h3 , h4 , h5 , h6 {
132
148
// counter display
133
149
> span ::before {
134
150
font-style : italic ;
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ function injectAnchorLinks() {
39
39
'.markdown-content h3' ,
40
40
'.markdown-content h4' ,
41
41
'.markdown-content h5' ,
42
+ '.markdown-content h6' ,
42
43
]
43
44
44
45
anchors . options = {
You can’t perform that action at this time.
0 commit comments