Revert "Revert "directive for anchors""

This reverts commit 54ae81c1168aaa85007ac58fb7a49c9cdcf7d445.