-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to redefine the ordered list counter using {:start="4"}
#750
Comments
We make extensive use of this in our product's Help site, often breaking up ordered lists with screenshots. |
This theme uses CSS counters to override the browser's default styling of It appears that one can resume an interrupted list as follows: Source:
Result: The required block IAL looks a bit ugly, but it avoids the need to use a specific number with the |
Close just-the-docs#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 just-the-docs#750 to `docs/index-test.md` to test.
Close just-the-docs#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 just-the-docs#750 to `docs/index-test.md` to test.
@mairas thanks for reporting the issue with the PR #856 adds tests that show how to use CSS styling to start at a given value, as well as to continue an interrupted list (as wanted by @bentookey-yotta). If that is adequate, please close this issue. Using CSS Counters has further examples. However, it doesn't seem possible to reverse the direction of counting without customising the CSS used by this theme. |
@pdmosses Thanks so much for explaining this, it's solved a major issue with our Help! |
@bentookey-yotta good to hear that you're happy with the solution that I found. I'm not familiar with the CSS used by this theme, nor with CSS counters, and I was puzzled to see that the specific attributes provided by HTML for manipulating the numbering in ordered lists don't work. AFAIK, the only documentation for the theme is what we see on the theme website, together with the occasional comment in the code… Let's leave this issue open for now: PR #856 should close it automatically when it gets merged. When all the more pressing issues have been addressed by the theme maintainers, it would be good to investigate whether the theme could and should use the automatically incremented list item counters instead of custom counters. |
Close just-the-docs#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 just-the-docs#750 to `docs/index-test.md` to test.
Close just-the-docs#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 just-the-docs#750 to `docs/index-test.md` to test.
* 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.
Describe the bug
I want to start an ordered list with a number other than 1. Normally, you'd add the html5
start
element with{:start="4"}
. However, the customol
CSS counter definitions in Just the Docs override this, and the list always starts with 1.To Reproduce
Steps to reproduce the behavior:
This source:
Expected behavior
The second list should start with number 4.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: