now uses a custom directive for definition links. this was not easy.