RemoveUnusedBookmarks

Removes all unused bookmarks from the epub file

Requirements
Plugin Type: Edit
MIT(OSI) Licence
Minimum Sigil requirement: v0.9.3 or higher
Python Requirements: Python 3.4+ (Bundled or External)
OS Requirements: Windows, Linux or OSX
Current Version: "0.1.0"

Installation
* Select Manage Plugins from the Plugins menu. In the dialog box, select either the Bundled Python or the External Python(Python 3.4+ should be installed on your computer to run this plugin externally).
* Click Add Plugin and select RemoveUnusedBookmarks_vXXX.zip. This will load and install the plugin into Sigil, which you can then select and run the plugin by selecting Plugins > Edit > RemoveUnusedBookmarls

Description
This plugin does the following tasks:
* Removes all unused bookmarks/ids from the xhtml files.
* Removes all anchor tags that contain no attributes.
* Ensures that all anchor start and end tags(with id only and no link) are always positioned before the parent tag text string. In Sigil html it is possible to get such anchor tags surrounding a text string whose text will not display correctly on some ereaders. In ADE for instance, such anchor text will be displayed as blue with underline like a link -- which is wrong because these anchor tags with just ids contain no links. This plugin automatically fixes that problem by moving the anchor text string and appending it to the end of the anchor's parent tag.

Plugin Run
Load your epub into Sigil and then just run the plugin.