I can repeat more-or-less what you saw. It appears to be a problem in Qt's HTML renderer. The HTML generated by calibre is fine.
Example: a composite that produces one character as output:
The resulting HTML
Code:
<div id="_composite" class="comments"><p class="description">✏️</p></div>
An
online HTML renderer gives me this:
Attachment 212932
The result in book details is this. Note that I see a pencil, just not the one the character specifies:
Attachment 212930
If I turn on the field header then I get this:
Attachment 212931
Clearly Qt's renderer is misbehaving. I don't know why, but there are now two workarounds:
- The one you used, a zero-width space.
- Turn on the header.