parse formatting in image captions.