Skip to content

Commit 3d691da

Browse files
committed
fix: ol in cut after ol
1 parent d2432d7 commit 3d691da

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/scss/_common.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
&:not(.yfm_no-list-reset) {
296296
ol {
297297
list-style-type: none;
298-
counter-reset: list-item;
298+
counter-reset: list;
299299

300300
& > li {
301301
position: relative;

src/scss/print/cut.scss

+14
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,17 @@
1616
}
1717
}
1818
}
19+
20+
.yfm-cut-content {
21+
.yfm:not(.yfm_no-list-reset) & ol {
22+
counter-reset: cut-list;
23+
24+
& > li {
25+
counter-increment: cut-list;
26+
27+
&::before {
28+
content: counters(cut-list, '.') '. ';
29+
}
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)