asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.13k stars 500 forks source link

Remove link from entry in TOC #2505

Closed mojavelinux closed 4 months ago

mojavelinux commented 4 months ago

If an entry in the TOC contains a link (such as a link in a section title), the link should be removed. This applies to both internal and external links. It's not possible to navigate to the link from the entry in the TOC since the click action is overridden by the link to the section title. Therefore, it serves no purpose and should be removed. In doing so, it avoids confusion about why the entry (or part of it) appears as link.