View Single Post
Old 04-24-2015, 03:51 PM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Turtle91 View Post
Thanks Doitsu! The increment function in Calibre was one of the only things pulling me away from Sigil (not that it worked)...

Question: Is this ONLY for <a> tags - or can I designate any element? ie <h2>Chapter [increment]</h2>
The version that I uploaded in the previous post is hard-coded for a tags, however, by deleting one line in the plugin it'll work with all tags because it doesn't add hrefs.

Please use the version that I attached to this post, which you can select via Plugins > Edit > AddIdsAll

(To add incremental ids to headings simply enter the heading tag in the first box, e.g. h1.)
Attached Files
File Type: zip AddIDsAll.zip (146.4 KB, 411 views)

Last edited by Doitsu; 04-24-2015 at 05:08 PM. Reason: Updated BS3 to BS4
Doitsu is offline   Reply With Quote