Include an SVG (hosted on GitHub) in MarkDown

后端 未结 8 1751
执笔经年
执笔经年 2020-12-07 07:49

I know with that an image can be placed in a MD with the MD syntax of either ![Alt text](/path/to/img.jpg) or ![Alt text](/path/to/img.jpg "Optional

8条回答
  •  感情败类
    2020-12-07 08:36

    This will work. Link to your SVG using the following pattern:

    https://cdn.rawgit.com////path/to.svg

    The downside is hardcoding the owner and repo in the path, meaning the svg will break if either of those are renamed.

提交回复
热议问题