I dont see how calibre could possibly be removing span tags, unless you have set some conversion setting telling it to do so, such as heuristics or serach and replace, etc.
In any case those span tag are completely superflous, simply put your id on the <p> tag and you can link to it just the same.
|