mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-17 08:32:24 -06:00
Show how to break an ol (#856)
* Show how to break an ol Close #750 The theme uses CSS counters for ordered lists. So to continue the numbering of an ordered list after a break, use `style="counter-reset:none"` instead of `start="42"`. Add the example from #750 to `docs/index-test.md` to test. * Show how to start from 42 Close #750 The theme uses CSS counters for ordered lists. To start the numbering of an ordered list with 42, use `{:style="counter-reset:step-counter 41"}` instead of `start="42"`. Add the example from #750 to `docs/index-test.md` to test.
This commit is contained in:
parent
10388ed8b0
commit
1ecc3d08e0
@ -78,6 +78,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user