Closing note tag dropped by typescript reduce step
The closing note tag is dropped by the very last Typescript step (reduce). The result is that everything in a paragraph appear the first note isn't visible in Wax (optionally, see wax/wax#149 (closed) for a description of that behavior).
The fix is to ensure that the
</note> remains where it is after the reduce step.
Here's an example:
typescript reduce input
...ends of development.<sup><note data-id="en2"><!-- implicit --></note></sup> </p>
typescript reduce output
...<note data-id="en2"/> </p>
but it should be
...<note data-id="en2"></note> </p>