Closed tylerlong closed 4 years ago
GitHub probably changed it somehow. Look through the regenerate github css
commits and see how it changed: https://github.com/sindresorhus/github-markdown-css/commits/gh-pages
I did a quick bit of investigation. Looks like GitHub has switched to using SVGs for the Octicon links. The bigger problem is that the HTML they're returning from the API doesn't have the same SVGs, it's still producing HTML designed for use with older CSS that uses pseudo-element content instead.
So basically, this stylesheet is now out of sync with what the GitHub markdown API is producing. You can see that this commit removed the pseudo-element content.
If you revert to a version before this commit, the Octicon links magically start working again.
Happy to accept a pull request that adds a workaround for now until GitHub updates their Markdown API endpoint (Please do contact GitHub support about that).
I'm facing the same problem. If I come up with a workaround I'll contribute.
In the meantime (for the sake of researching the issue) I just wanted to add a reference link to the post where GH announces switching from font-icons to SVG images:
For some reason the following doesn't work any more:
It is reproducable in the demo page.