Originally reported on MS-3919. To reproduce
Embed a markup files that has headings
Add a table of contents macro at the top of the page.
The titles show up in the table of contents, however clicking on the table of contents doesn’t navigate to the correct place.
Note that this can never work with cloud due to iframes. But it should work for server.