Sorry I'm a little confused. I looked at the epub file you attached and I can see no mis-matched <a> tags and it renders fine in the viewer and editor. Have you already removed them from the epub? Or maybe I am missing them?
I also tried converting the attached html with the same level 1 and level2 toc expressions as you used and coule see no mismatched <a> tags either.
|