I have determined that in the case of an article that is indexed correctly, the MOBI file has a bookmark placed in a <DIV id="filepos...."> tag before the navigation bar and article contents, whereas for an article with a picture between the headline and body, the bookmark is placed in a <a id="filepos..."> tag immediately before the <p class=...><img> tags representing the picture. That is why the TOC links to the picture, not the nav bar and headline. I'm not having any luck figuring out from the source writer.py why this is. Any suggestions?
|