Invert ~ and = markups