I want to add buttons to my markdown that, when pressed, let the viewer fork, star or watch a github repository.
I already tried adding the html to my README.md, but it does not work.
Especially
<script async defer src="https://buttons.github.io/buttons.js></script>
does not seem to work (it just displays the link)
Is there a way to use Github Buttons (https://buttons.github.io) in a markdown (.md) file?
Or are there other ways to inplement this?
If you created an image file with the button you could incorporate it directly in markdown.
For example:
[![](https://s18955.pcdn.co/wp-content/uploads/2018/02/github.png)](https://github.com/user/repository/subscription)
To control the size of the button you may need to incorporate html borrowing from this answer Changing image size in Markdown
[<img src="https://s18955.pcdn.co/wp-content/uploads/2018/02/github.png" width="25"/>](https://github.com/user/repository/subscription)
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