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

后端 未结 9 1460
小蘑菇
小蘑菇 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 18:23

    Upload from local:

    1. Add your .gif file to the root of Github repository and push the change.
    2. Go to README.md
    3. Add this ![Alt text](name-of-gif-file.gif) / ![](name-of-gif-file.gif)
    4. Commit and gif should be seen.

    Show the gif using url:

    1. Go to README.md
    2. Add in this format ![Alt text](https://sample/url/name-of-gif-file.gif)
    3. Commit and gif should be seen.

    Hope this helps.

提交回复
热议问题