mirror of
https://github.com/thangisme/notes.git
synced 2025-01-05 00:26:27 -05:00
Make cursor pointer, update docs, and add heading
This commit is contained in:
parent
c8bbcc2d9b
commit
845261205f
@ -165,6 +165,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
@ -236,7 +236,9 @@ To generate a Table of Contents on your docs pages, you can use the `{:toc}` met
|
|||||||
|
|
||||||
This example skips the page name heading (`#`) from the TOC, as well as the heading for the Table of Contents itself (`##`) because it is redundant, followed by the table of contents itself. To get an unordered list, replace `1. TOC` above by `- TOC`.
|
This example skips the page name heading (`#`) from the TOC, as well as the heading for the Table of Contents itself (`##`) because it is redundant, followed by the table of contents itself. To get an unordered list, replace `1. TOC` above by `- TOC`.
|
||||||
|
|
||||||
The table of contents can be made collapsible by adding HTML markup, as in the following example. The attribute `open` and the styling with `{: .text-delta }` are optional.
|
### Collapsible Table of Contents
|
||||||
|
|
||||||
|
The Table of Contents can be made collapsible using the `<details>` and `<summary>` elements , as in the following example. The attribute `open` (expands the Table of Contents by default) and the styling with `{: .text-delta }` are optional.
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
<details open markdown="block">
|
<details open markdown="block">
|
||||||
|
Loading…
Reference in New Issue
Block a user