add html anchors to headers with extension