properly format definition links in sidebar