Fixed positioning of anchor tags for consistency

This is required to parse markdown files with other parsers
Merge pull request #805 from mnishihan/patch-1

Fixed positioning of anchor tags for consistency