Preserve inline formatting on note callouts
The editors at UCP have found a strange bug related to how notes appear in Wax when the note callouts (the inline note numbers in the main content) have inline formatting applied to them (underlining, italics, bold, etc.).
If a note callout has inline formatting tags applied to it, those tags are preserved in the final HTML extraction from XSweet core. But, when Typescript transforms the note and callout formats from their HTML to the Wax-specific note and callout format, any inline formatting tags applied on the note callout are dropped.
The fix for the bug is to update Typescript to preserve inline formatting tags on the note callouts all the way through Typescript.
Here's an example of an instance that causes the bug in Substance:
The original Word .docx here has an italicized note callout. The whole paragraph is italicized, with italics before, on, and after the note callout:
Here's the result of XSweet Core - the inline italics on the note callout is still there (the
<i>s inside the
< span class=EndnoteReference">) :
<p style="font-size: 14pt"> <span style="font-size: 14pt">“ <i>When you go out to battle... that makes war with you, until it is subdued.</i> <span class="EndnoteReference"> <i><a class="endnoteReference" href="#en6">6</a></i> </span> <i>“</i> </span> </p>
And, you can see that in this final result that's ported into Editoria, the
<i> tags have all been converted to
<em> tags, and the tags within the note callout have been dropped:
<p>" <em>When you go out to battle that makes war with you, until it is subdued. </em> <note data-id="en6" /> <em>"</em> </p>
The request for this ticket is: if there are
<em> tags enclosing a note callout, preserve those through Typescript.