When direct formatting is not applied to the entire contents of a cell, but is instead applied to various parts of the cell text, various bugs show up.