remove markup automatically if no text in insert mode