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

后端 未结 9 1456
小蘑菇
小蘑菇 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:41

    From the Markdown Cheatsheet:

    You can add it to your repo and reference it with an image tag:

    Inline-style: 
    ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
    
    Reference-style: 
    ![alt text][logo]
    
    [logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
    

    Inline-style: alt text

    Reference-style: alt text


    Alternatively you can use the url directly:

    ![](http://www.reactiongifs.us/wp-content/uploads/2013/10/nuh_uh_conan_obrien.gif)
    

提交回复
热议问题