I am trying to find the logic on how IDs are generated from IDs.
For example having the following heading is converted to #HExampleHeading
= Example Heading =
My goal is to go from URL back to headings in the raw source of the page rather than the rendered page.
I have been able to reproduce the logic for most simple situations but there are still edge cases for which my logic fails, therefore I wanted to look at reproducing directly the logic used for rendering the headings.