Is there a way to add a gif to a Markdown file?

后端 未结 9 1457
小蘑菇
小蘑菇 2021-01-29 17:43

I want to add this gif to a GitHub flavored markdown file. If it can\'t be done in GitHub, is it possible to do it in another version of markdown?

9条回答
  •  [愿得一人]
    2021-01-29 18:37

    Giphy Gotcha

    After following the 2 requirements listed above (must end in .gif and using the image syntax), if you are having trouble with a gif from giphy:

    Be sure you have the correct giphy url! You can't just add .gif to the end of this one and have it work.

    If you just copy the url from a browser, you will get something like:

    https://giphy.com/gifs/gol-automaton-game-of-life-QfsvYoBSSpfbtFJIVo

    You need to instead click on "Copy Link" and then grab the "GIF Link" specifically. Notice the correct one points to media.giphy.com instead of just giphy.com:

    https://media.giphy.com/media/QfsvYoBSSpfbtFJIVo/giphy.gif

提交回复
热议问题