add anchors and internal links