Describe the bug
After writing a Subheading (h3) in a page, any successive Heading (h2) will show in the Table of Contents as Subheadings of the same Heading. (Successive Subheadings to the Heading are nested further). This will happen if you create a ToC before or after doing this.
Steps to reproduce the behavior:
- Write an Heading
- Write a Subheading
- Write another Heading
The Heading in the ToC shows correctly indented headings.
- OS: e.g. Windows 10
- Device Manufacturer/Model: Asus
- Anytype Version: e.g. 0.24.0
I’m not able to reproduce this on Linux.
Created a “Table of contents” before, than added titles and headings. Worked fine.
Also created another “Table of contents” after that. Showing the same.
I’m not talking about Titles (h1), I’m talking about only Headings (h2) and Subheadings (h3). Try h2 - h3 - h2, not h2 - h3 - h1. Putting a Title ‘resets’ the indentation and like you showed works as intended.
Got it. Deleting the titles in between then shows the same problem on Linux.
I have the same problem, fix would be much apprechiated!
(also on Windows)