How to make sure that the shields.io badge points to the site, and do that using reference-style markdown links.
This works fine
[][http://github.com/psf/black]
[][http://github.com/psf/black]
This doesn't works
[black]
[black]: http://github.com/psf/black
[black-shield]: https://img.shields.io/badge/code%20style-black-black.svg?style=for-the-badge&labelColor=gray
The correct syntax is
[](https://shields.io/)
Example
[](https://stackoverflow.com/users/12299287/cryptocode)
Produces
Works using square brackets!
[![][black-shield]][black]
[black]: http://github.com/psf/black
[black-shield]: https://img.shields.io/badge/code%20style-black-black.svg?style=for-the-badge&labelColor=gray
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With