How does section numbering work? It seems to generate incorrect numbers as 1.1, 1.2, 2.3, 2.4... instead of 1.1, 1.2, 2.1, 2.2,...
RJTK opened this issue · comments
Is the logic for section numbering present in typo.scss? I have noticed that the sub-section numbering appears to not reset when there is a new higher level section. e.g., you may have sections 1, 1.1, 1.2, and then section 2, 2.1, 2.2, but these will be incorrectly labeled as 2.3, 2.4, continuing the same subsection counter rather than resetting it.
An example of this is on my blog here: https://rjtk.github.io/posts/solving-equations-with-jacobi-iteration/ where there are sections 2.1, 2.2, 2.3, and then 4.4, 4.5 instead of 4.1, 4.2.
I don't see anything in the index.md
file that would affect the numbering.
I did find this problem before, but due to the limitations of css, there is no way to fix it at the moment. I am trying to use js to number the headers.
Okay got it -- I'll post here if I find a workaround. Thanks for your work on the Luna theme!