If direction is omitted, return the gravity of mark markName, either 'left' or 'right'. Otherwise set its gravity to direction. The gravity determines on which side of the mark text inserted at the mark’s position appears: a mark with right gravity (the default) stays to the right of such text.