Reformat and override anchor click.