Fixed merging of text and :em/:strong elements
Fixed merging of text and :em/:strong elements

There were some cases where the previous algorithm didn't work correctly.

imazen/repositext,imazen/repositext,imazen/repositext