compile permalink directive annotations