Add remark-toc plugin.

Add plugin for generating table of content automatically for markdown files.
This commit is contained in:
2024-06-28 22:32:38 +08:00
parent 2f54cf304a
commit 05c1b0d29b
4 changed files with 44 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ const articlePrettyName = article!.id.split("/").pop()!.replace(".md", "");
flex-wrap: wrap;
}
/* reduce indent of TOC list */
:global(.article-title + ul) {
:global(.article-title ~ ul:nth-of-type(1)) {
margin: 1em 0 1em 0;
padding: 0 0 0 20px;
}