mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-12 21:03:32 -06:00
docs: fix spacing in toc example (#835)
As is, this is invalid and will not cause the TOC to be rendered. The collapsing example is fine. Co-authored-by: Matt Wang <matt@matthewwang.me> Co-authored-by: Peter Mosses <18308236+pdmosses@users.noreply.github.com>
This commit is contained in:
@@ -94,6 +94,24 @@ end
|
||||
1. Item three
|
||||
1. Item four
|
||||
|
||||
### And an ordered list, continued:
|
||||
|
||||
1. Item one
|
||||
1. Item two
|
||||
|
||||
Some text
|
||||
|
||||
{:style="counter-reset:none"}
|
||||
1. Item three
|
||||
1. Item four
|
||||
|
||||
### And an ordered list starting from 42:
|
||||
|
||||
{:style="counter-reset:step-counter 41"}
|
||||
1. Item 42
|
||||
1. Item 43
|
||||
1. Item 44
|
||||
|
||||
### And a nested list:
|
||||
|
||||
- level 1 item
|
||||
|
@@ -246,7 +246,7 @@ To generate a Table of Contents on your docs pages, you can use the `{:toc}` met
|
||||
{: .no_toc .text-delta }
|
||||
|
||||
1. TOC
|
||||
{:toc}
|
||||
{: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`.
|
||||
|
Reference in New Issue
Block a user