Skip to content

Commit

Permalink
ADD: auto number
Browse files Browse the repository at this point in the history
  • Loading branch information
ma91n committed Jan 30, 2025
1 parent 5d2ab89 commit 199b56e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 40 deletions.
11 changes: 11 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,14 @@ h5,
h6 {
page-break-after: avoid;
}

/* h2 タグにカウンターリセットを追加 */
h2 {
counter-reset: section;
}

/* h3 タグに連番を振る */
h3::before {
counter-increment: section;
content: counter(section) ". ";
}
Loading

0 comments on commit 199b56e

Please sign in to comment.