Merge branch 'develop'
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 11s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 11s
This commit is contained in:
commit
6ee9e67633
1 changed files with 32 additions and 0 deletions
|
|
@ -209,6 +209,38 @@ async function scrollTo(id: string) {
|
|||
padding-block: 1rem !important;
|
||||
}
|
||||
|
||||
.markdown {
|
||||
counter-set: h1 0;
|
||||
counter-reset: h1;
|
||||
}
|
||||
|
||||
.markdown :deep(h1) {
|
||||
counter-reset: h2;
|
||||
}
|
||||
|
||||
.markdown :deep(h2) {
|
||||
counter-reset: h3;
|
||||
}
|
||||
|
||||
.markdown :deep(h3) {
|
||||
counter-reset: h4;
|
||||
}
|
||||
|
||||
.markdown :deep(h2:before) {
|
||||
counter-increment: h2;
|
||||
content: counter(h2) '. ';
|
||||
}
|
||||
|
||||
.markdown :deep(h3:before) {
|
||||
counter-increment: h3;
|
||||
content: counter(h2) '.' counter(h3) ' ';
|
||||
}
|
||||
|
||||
.markdown :deep(h4:before) {
|
||||
counter-increment: h4;
|
||||
content: counter(h2) '.' counter(h3) '.' counter(h4) ' ';
|
||||
}
|
||||
|
||||
.markdown :deep(blockquote) {
|
||||
background-color: var(--surface-2);
|
||||
border-radius: 8px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue