Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save amaurycatelan/26c07bf9e6658a26a52d60c0390d8e5c to your computer and use it in GitHub Desktop.

Select an option

Save amaurycatelan/26c07bf9e6658a26a52d60c0390d8e5c to your computer and use it in GitHub Desktop.

Revisions

  1. @kannankumar kannankumar revised this gist Oct 22, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -33,5 +33,5 @@ We'll be using the features of this rich text editor of comment.
    **4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!**
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)

    ![like_that_gif](https://user-images.githubusercontent.com/711743/96873062-bcb9ff00-1474-11eb-8594-07267b601db6.gif)
    ![like_that_gif](https://user-images.githubusercontent.com/711743/96873062-bcb9ff00-1474-11eb-8594-07267b601db6.gif)
    _You can use it to add GIFs too._
  2. @kannankumar kannankumar revised this gist Oct 22, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,7 @@ We'll be using the features of this rich text editor of comment.
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    **4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!**
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)

    ![like_that_gif](https://user-images.githubusercontent.com/711743/96873062-bcb9ff00-1474-11eb-8594-07267b601db6.gif)
    _You can use it to add GIFs too._
  3. @kannankumar kannankumar revised this gist May 4, 2017. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -15,20 +15,20 @@ Once you have created a Gist, you can add comments to the Gist if required.
    We'll be using the features of this rich text editor of comment.

    ### Steps:
    **1) Pre-requisite : Create a gist with atleast one file.**
    **1) Pre-requisite : Create a gist with atleast one file.**
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png)

    **2) Copy + Paste the image into the Comment field.**
    OR
    Upload the image using the option in Comment editor.
    **2) Copy + Paste the image into the Comment field.**
    OR
    Drag and drop the image into the Comment field.
    The image will start uploading to Github servers.
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)

    **3) Once the image is uploaded, the Url link to the hosted image is visible in comments field**
    **3) Once the image is uploaded, the Url link to the hosted image is visible in comments field**
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)

    ___Copy and Use this link in the .markdown file___
    ___Copy and Use this link in the .markdown file___
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    **4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!**
    **4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!**
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)
  4. @kannankumar kannankumar revised this gist May 4, 2017. 1 changed file with 15 additions and 16 deletions.
    31 changes: 15 additions & 16 deletions Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -14,22 +14,21 @@ What I'm going to show is just a quick and dirty alternative to the above mentio
    Once you have created a Gist, you can add comments to the Gist if required.
    We'll be using the features of this rich text editor of comment.

    Steps:
    1) Pre-requisite : Create a gist with atleast one file.
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png =250x)

    2) Copy + Paste the image into the Comment field.

    OR
    Upload the image using the option in Comment editor.
    The image will start uploading to Github servers.
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)
    ### Steps:
    **1) Pre-requisite : Create a gist with atleast one file.**
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png)

    **2) Copy + Paste the image into the Comment field.**
    OR
    Upload the image using the option in Comment editor.
    The image will start uploading to Github servers.
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)

    3) Once the image is uploaded, the Url link to the hosted image is visible in comments field
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)
    **3) Once the image is uploaded, the Url link to the hosted image is visible in comments field**
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)

    **Copy and Use this link in the .markdown file
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``
    ___Copy and Use this link in the .markdown file___
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png =250x)
    **4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!**
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)
  5. @kannankumar kannankumar revised this gist May 4, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -16,20 +16,20 @@ We'll be using the features of this rich text editor of comment.

    Steps:
    1) Pre-requisite : Create a gist with atleast one file.
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png)
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png =250x)

    2) Copy + Paste the image into the Comment field.

    OR
    Upload the image using the option in Comment editor.
    The image will start uploading to Github servers.
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)

    3) Once the image is uploaded, the Url link to the hosted image is visible in comments field
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)

    **Copy and Use this link in the .markdown file
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``
    **Copy and Use this link in the .markdown file
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png =250x)
  6. @kannankumar kannankumar revised this gist May 4, 2017. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Markdown files allow embedding images in it.
    However it requires the image to be hosted at some location and we can add the url of the image to embed it.

    Example:
    ``![Alternate Text](https://someurl/imagelocation/image.png)``
    ``![Alternate image text](https://someurl/imagelocation/image.png)``

    We can use services like imgur or other services to host the images and use the hosted URL.

    @@ -16,15 +16,20 @@ We'll be using the features of this rich text editor of comment.

    Steps:
    1) Pre-requisite : Create a gist with atleast one file.
    ![Create Gist](https://cloud.githubusercontent.com/assets/711743/25689673/17296b42-30a8-11e7-9b62-90207b2a6686.png)

    2) Copy + Paste the image into the Comment field.

    2) Copy + Paste the image into the Comment field
    OR
    Upload the image using the option in Comment editor.

    The image will start uploading to Github servers.
    ![Uploading Image](https://cloud.githubusercontent.com/assets/711743/25689748/83edbdf0-30a8-11e7-8526-b043089743d0.png)

    3) Once the image is uploaded, the Url link to the hosted image is visible in comments field
    **Copy and Use this link in the .markdown file
    eg - ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``
    ![Link for uploaded image](https://cloud.githubusercontent.com/assets/711743/25689713/564cdc46-30a8-11e7-883f-3ba3b9fb1454.png)

    **Copy and Use this link in the .markdown file
    ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!
    ![Image embedded in markdown](https://cloud.githubusercontent.com/assets/711743/25689775/b570dee8-30a8-11e7-936d-7ccc3d386e41.png)
  7. @kannankumar kannankumar revised this gist May 4, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Adding Images to markdown files in Gist.markdown
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Markdown files allow embedding images in it.
    However it requires the image to be hosted at some location and we can add the url of the image to embed it.

    Example:
    #![Alternate Text](https://someurl/imagelocation/image.png)
    ``![Alternate Text](https://someurl/imagelocation/image.png)``

    We can use services like imgur or other services to host the images and use the hosted URL.

    @@ -25,6 +25,6 @@ Steps:

    3) Once the image is uploaded, the Url link to the hosted image is visible in comments field
    **Copy and Use this link in the .markdown file
    eg - ![github sparkline with gradient](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)
    eg - ``![image text](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)``

    4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!
  8. @kannankumar kannankumar renamed this gist May 4, 2017. 1 changed file with 0 additions and 0 deletions.
  9. @kannankumar kannankumar created this gist May 4, 2017.
    30 changes: 30 additions & 0 deletions Adding Images to markdown files in Gist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    How To - Upload and add Images to markdown files in Gist
    ------------------------------------------------------

    Markdown files allow embedding images in it.
    However it requires the image to be hosted at some location and we can add the url of the image to embed it.

    Example:
    #![Alternate Text](https://someurl/imagelocation/image.png)

    We can use services like imgur or other services to host the images and use the hosted URL.

    What I'm going to show is just a quick and dirty alternative to the above mentioned image hosting services.

    Once you have created a Gist, you can add comments to the Gist if required.
    We'll be using the features of this rich text editor of comment.

    Steps:
    1) Pre-requisite : Create a gist with atleast one file.


    2) Copy + Paste the image into the Comment field
    OR
    Upload the image using the option in Comment editor.


    3) Once the image is uploaded, the Url link to the hosted image is visible in comments field
    **Copy and Use this link in the .markdown file
    eg - ![github sparkline with gradient](https://cloud.githubusercontent.com/assets/711743/25648417/57cd2c0c-2fe9-11e7-8753-b60ea2656faf.png)

    4) Save the markdown file. And you'll see the image placed inline in the markdown file. Done!