Conversion between markup formats