Skip to content

Incorrect links in the TOC entries for titles with backslashes #67

@rodrigoprimo

Description

@rodrigoprimo

I noticed that the TOC entries for titles with backslashes in the Version 4.0 Developer Upgrade Guide are not working. An example is the entry "Sniffs must implement the PHP_CodeSniffer\Sniffs\Sniff interface".

It seems that doctoc generates the incorrect anchor link (it includes the backslashes while GitHub does not). I left a comment about it in an already existing issue in the doctoc repository: thlorenz/doctoc#260.

Opening this issue for awareness. It is just a small detail, but maybe we can see if there is an easy-to-implement workaround?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions