Maybe fixed italics and bold to only occur when there is a word break boundary
fixed index-out-of-bounds error