added anchors to ApiMarkdown

fixes #2220