Format anchor rules properly