Adding markup to part of a syllable connected with lyric ties (~)

In modern editions of early music, it is common to typeset implicit lyrics (marked with "ij") in italics; this snippet demonstrates a way to handle cases where italic and plain lyric text fall on the same syllable, and a lyric tie (~) is desired.