Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Put id attributes on TOC entries so they can be linked to #7907

@MuntashirAkon

Description

@MuntashirAkon

Describe your proposed improvement and the problem it solves.
Pandoc has an option to generate table of contents. It also nicely links the section titles making it a bit easy to navigate around the generated HTML file. However, there is no way of going back to the table of content from the section that the reader has navigated to.

Here's a link to a documentation generated by make4ht as an example: https://muntashirakon.github.io/AppManager/en/

As you can see in the example,

  1. Section numbers do not have hyperlinks, only the titles do, thus, making it easier to distinguish the titles from the section number
  2. It is possible go back to the table of contents via the hyperlink in the section title.

Describe alternatives you've considered.
I can continue to use make4ht but it has other issues. Other option is to write a script to emulate that myself.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions