GitHub README现在在AWS S3上显示外部图像

时间:2016-12-01 07:35:42

标签: github github-flavored-markdown

我的README文件中有以下标记。

![](https://cs-challenge.s3-ap-southeast-1.amazonaws.com/4281a2523dc3b47813316b0400549a6295a55f05.png)

HTML现在也可以使用,

<img src="https://cs-challenge.s3-ap-southeast-1.amazonaws.com/4281a2523dc3b47813316b0400549a6295a55f05.png" />

雪山插图由Freepik设计

(适用于StackOverflow)

GitHub无法正确呈现标记,将上面的降价标记转换为下面的标记,

<p><a href="https://camo.githubusercontent.com/15e4c167d484297001c34549a2cc69f0ddc80704/68747470733a2f2f63732d6368616c6c656e67652e73332d61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f343238316132353233646333623437383133333136623034303035343961363239356135356630352e706e67" target="_blank"><img src="https://camo.githubusercontent.com/15e4c167d484297001c34549a2cc69f0ddc80704/68747470733a2f2f63732d6368616c6c656e67652e73332d61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f343238316132353233646333623437383133333136623034303035343961363239356135356630352e706e67" alt="" data-canonical-src="https://cs-challenge.s3-ap-southeast-1.amazonaws.com/4281a2523dc3b47813316b0400549a6295a55f05.png" style="max-width:100%;"></a></p>

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:0)

尝试直接在markdown中使用标记,例如

<img src='https://cs-challenge.s3-ap-southeast-1.amazonaws.com/4281a2523dc3b47813316b0400549a6295a55f05.png' width: 300 />

答案 1 :(得分:0)

原因是我没有为存储在AWS S3上的图像设置元数据。我需要做的就是为文件分配正确的元数据类型。

enter image description here