I'd like to provide a way to have a TOC in an HTML output that hyperlinks to another location within the document. For example, in HTML you can have a hyperlink use href="#some_id" which locates something that has the attribute of id="some_id", such as a SPAN element.
Is there a way to do this? I already add bookmarks for this when creating a TOC for PDFs as well as user bookmarks, and it would be cool if you could automatically convert them to the above when outputting as HTML. But I am fine with having to do it in code but I just don't know how to do that and if it is even possible.
Right now for HTML output the TOC hyperlinks create the href but without the # prefix, so it attempts to open an external page, and bookmarks don't even get output, but would be nice if they get output as a span using the bookmark name as the ID.
Thoughts?