Skip to content

Instantly share code, notes, and snippets.

@qin-yu
Created December 15, 2023 21:32
Show Gist options
  • Select an option

  • Save qin-yu/cb9039b0eda130c4ea14ae330a74e8b1 to your computer and use it in GitHub Desktop.

Select an option

Save qin-yu/cb9039b0eda130c4ea14ae330a74e8b1 to your computer and use it in GitHub Desktop.

Revisions

  1. qin-yu created this gist Dec 15, 2023.
    7 changes: 7 additions & 0 deletions add-image-to-md.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    When you are not able to embed/add an image from GitHub to your MarkDown files such as a page in Sphinx or Jupyter Book, maybe you are using `blob` instead of `raw` in the image URL.

    For example, if you use `https://github.com/hci-unihd/plant-seg/raw/assets/images/plantseg_overview.png` then the link is to an image, but `https://github.com/hci-unihd/plant-seg/blob/assets/images/plantseg_overview.png` is to the GitHub page that contains the image.

    Click to see the difference:
    - https://github.com/hci-unihd/plant-seg/raw/assets/images/plantseg_overview.png
    - https://github.com/hci-unihd/plant-seg/blob/assets/images/plantseg_overview.png