Gist: How are images uploaded to a gist?

前端 未结 8 2127
夕颜
夕颜 2020-12-22 15:33

Here is the image file: https://gist.github.com/mbostock/5503544#file-thumbnail-png

I tried to drag-and-drop the image file in the edit mode of a gist. That didn\'t

8条回答
  •  心在旅途
    2020-12-22 16:13

    With a little creativity you can achieve this faster than cloning. To drag/drop:

    1. Create the Gist
    2. Drag an image into the comment field below. This will auto-upload your image file to https://user-images.githubusercontent.com and insert markdown code in the comment field to display the image.
    3. Copy this markdown code to your gist

    Note: It is not required that you submit the comment.

    Live example

提交回复
热议问题