markup: ToC links to numbered headings won't work with reStructuredText or AsciiDoc
The fragment identifiers for AsciiDoc headings are prefixed with the section number; however, the numbers are omitted from the table of content’s links. With ReST, the fragment identifiers for headings are simply bogus (for example, #id203
).
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 28 (14 by maintainers)
Seems a regression. I can see the link does not work for now due to the section number added to the hyperlink, but was working in the past years.
@mojavelinux yes, it’s in the github wiki that doesn’t work for me.
IMHO the actual bug was that in case of :numbered: the numbering is added to the id (anchor). You might have fixed this for :toc: but the problem still is that the number is actually added to the id what makes the id totally unstable and therefore breaks with every new section above. Aint the purpose of an anchor to be stable. Ids are used for bookmarks, deep links and xref: links inside asciidoc.