Hello all,
In a table of content, when the level between two consecutive heading is more than one, a superfluous item marker is displayed for the skipped level.
For instance, for the following content:
{{toc/}}
= H1 =
=== H3 ===
The current result is
But should be
The proposed approach (see the PRs below) it to annotate skipped level with the nodirectchild
class during rendering. And, to use this class to hide the item marker of those elements in css.
The main point to discuss is imo the choice of the css class which would become part of the macro API.
I’m currently proposing nodirectchild
.
WDYT?
Jira issue: Loading...
Pulls requests: