Nested tags working with front and back offsets

Tags nest correctly when partial text is selected.