From 1ecc3d08e052ebac800793946cb2f9cf6a8ee752 Mon Sep 17 00:00:00 2001 From: Peter Mosses <18308236+pdmosses@users.noreply.github.com> Date: Mon, 4 Jul 2022 21:20:17 +0200 Subject: [PATCH] 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. --- docs/index-test.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/index-test.md b/docs/index-test.md index 920aec3e..a84afb09 100644 --- a/docs/index-test.md +++ b/docs/index-test.md @@ -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 -- GitLab