added ability to generate heading anchors