Great usage example. Maybe you could port and post it
in the saved searches sticky thread. It could be, no, it will be, a great addition.
Nevertheless:
Quote:
Originally Posted by dmonasse
Nota: I can't use the class attribute to denote the type of the div because the conversion process from HTML to ePub by Calibre modifies these attributes and class="theorem" may be changed into class="pcalibre25". That's the reason for the data-type attribute.
|
Are you sure? I haven't tested with an HTML to epub conversion, but in an epub to epub conversion, "calibreXX" classes only appear when the original element has no given class in the source file. I've just made a quick test and I'm seeing preserved <p class="salto1">, <blockquote class="asangre"> or my own <span class="nw">.