Document is re-structured by formatting code