Embed a bookmark for output as HTML
Hi. Using ID 20.5 under Win 11.
I've posted previously, but want to make sure I'm clear on my question:
Question:
Does InDesign include any way to insert an HTML bookmark containing specific text at a specific location in the InDesign source material prior to HTML output, so that ID outputs the bookmark as HTML at that specific location?
Background:
For example, I want to insert a bookmark such as "custom-bookmark" at the beginning of a specific paragraph -- just like I might insert a PDF bookmark (and so obtain HTML output reading id="custom-bookmark" at that location) so that another web page (NOT UNDER MY CONTROL and not part of my document) can include an <a href="somefile.html#custom-bookmark">go here</a> and display my standalone page.
Here's the use-case: I'm delivering an online HTML version of an existing manual for a client's SaaS app, and the programmers want to call into the docs to display specific content by referring to the specific bookmarks in the manual that I place there. This is a critical requrement. I cannot figure out how to enter such a bookmark*. I'm not talking about doing fancy HTML layout work with an inappropriate tool -- I'm outputting an existing InDesign text (just not as print or PDF).
*Yes, I can enter such a bookmark manually, but only after generating the HTML. There might be 100 bookmarks, but it can be done. (a) Have you seen the HTML code that ID generates? Each word is a separate item. Seems... odd. (b) Once done, if there were any revisions that resulted in new output, all the bookmarks would have to be redone... manually. Not a good approach. That's why I want to insert such bookmarks in the ID source. I have tried using the Bookmarks window and the Hyperlinks window... and while I may be doing something wrong, the HTML output appears to ignore both.
Thanks as always to the community.
-j
