Skip to content

wrong TOC level #323

@step-

Description

@step-

Minimal working example

# One
1

### Three
3

Description

In the minimal working example, pressing \wf should produce the following TOC

*Contents*
* [One](#One)
                * [Three](#One##Three)

but instead it produces:

*Contents*
        * [Three](#One##Three)

with the level-3 heading promoted to level 2. Consequently, following the link always jumps to the level 1 heading.

The point is that I would like to be able to jump to the level 3 heading from the generated TOC even if there is no intermediate level 2 heading in the markdown file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions