fixed split error in markdown editor