Scan for function declarations, not just definitions. Locate internal index links to the last seen title if that title has an anchor. Regenerate examples, and test cases.