Updates diagram and figure markup.