Skip to content

adding markup to a section title generates an anchor that breaks navigation when number_sections=false  #1258

Open
@ialbert

Description

@ialbert

Tested with bookdown 0.24. Take the bookdown-demo repository. If the setting

number_sections: false

then if one were to add any formatting to a section title, for example:

# *Literature*

the link that gets generated gains an anchor:

literature.html#literature

The link still works when clicked but the javascript highlighting the active section in the table of content stops working and breaks the ability to see what page in the TOC is active, and with that breaks the navigation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions