Description
Describe the bug
Not a huge deal, and likely quite specific, but when using the "floating toc" plugin with this theme, and a CSS snippet to make hierarchical numbered lists for Reading mode, it behaves unexpectedly and adds a 0, when there isn't supposed to be one. This hasn't occurred with any other theme.
Expected behavior
For the numbers to be assigned correctly, i.e. top level (parent) list numbers are used in front of their children, without a 0 being present.
To Reproduce
Steps to reproduce the behavior:
- Use the ITS Theme, settings don't matter.
- Use the "floating toc" plugin.
- Use this CSS snippet.
- I personally made the following modification to every line in the snippet:
)". "
, replacing) "\A0"
.
- I personally made the following modification to every line in the snippet:
- Reload Obsidian and turn on the snippet and the plugin.
- Make a numbered list in Obsidian, with a heading anywhere in the same note, and go into Reading mode.
Screenshots
Mode
What mode(s) does the bug occur? Select all that apply.
- Source Mode
- Live Preview
- Reading Mode
OS
Where does the bug occur?
- Desktop
- Mobile
Versions
- Obsidian Version: 1.8.10
- ITS Theme Version: 1.3.38
- Using ITS Snippet:
Additional context
Hasn't happened with any other theme, and only happens if there is a heading in the note. Not a big issue, but I figured it'd be worth noting regardless. Confirmed via fresh Obsidian Vault. Also tested whether the zero would appear on the parents if the first counter
was instead counters
, which it did.
Metadata
Metadata
Assignees
Labels
Projects
Status