Closed meyer closed 6 years ago
This seems to happen to all of the headings #
through ######
:
Yikes! I just saw this too. Thanks for opening the issue, @meyer!
Yeah, looks like an API bug leaked through:
$ curl https://api.github.com/markdown -d '{ "text": "# testing" }'
<h1>
<a id="user-content-testing" class="anchor" href="#testing" aria-hidden="true"><span>{:"aria-hidden"=>"true", :class=>"octicon octicon-link"}</span></a>testing</h1>
I just contacted GitHub's API support about it.
It's pretty annoying though, so if they don't respond or say they can't fix it quickly, I'll have time tomorrow to release a short-term workaround.
Alright. I haven't heard anything back yet. (It's the weekend after all.) I do think this is annoying enough to patch in the meantime, so here's a fix #245.
It's quite hacky (if you have a README that contains <span>{:"aria-hidden"=>"true", :class=>"octicon octicon-link"}</span>
, it'll be outright replaced with <span class="octicon octicon-link"></span>
), but gets the job done. As such, I made a note to remove this once GitHub addresses it.
Since I've fallen behind, this release also includes several other fixes that were just waiting on me for a summary and PyPI upload.
Thanks for your patience, all ๐
@joeyespo thanks a lot for your great effort! can confirm that grip 4.4.0 does not show the "funky headings"
@joeyespo you are a star! ๐ thank you for fixing this so quickly, much appreciated!
GitHub responded with this:
Just wanted to let you know that the team deployed some changes which should have fixed this problem. If you can still reproduce this โ please let us know.
This was sent last Monday (Sept 25), and I can confirm that it works now. (Thanks for the quick official fix, GitHub!) I'll remove the workaround in the next release ๐
@joeyespo rad, thanks! ๐ ๐ ๐
I think something in Githubโs API must have changed very recently. Sometime in the past day or so my headings started to look like this: