When I test the GitHub Markdown API (https://developer.github.com/v3/markdown/), I'll get a link inside an h1 tag when converting a simple "# Headline".
This is what I send:
curl --data '{"text":"#Headline","mode":"markdown"}' https://api.github.com/markdown
This is what I get:
<h1>
<a id="user-content-headline" class="anchor" href="#headline" aria-hidden="true"><span class="octicon octicon-link"></span></a>Headline</h1>
This is what I expected to get:
<h1>Headline</h1>
Does anyone knows why it happens this way and how to avoid it?
Thanks.