GitHub README不在AWS S3上显示外部映像 [英] GitHub README does not show external image on AWS S3

查看:68
本文介绍了GitHub README不在AWS S3上显示外部映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的自述文件中包含以下标记.

I have the following markup inside my README file.

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

HTML现在也可以使用

HTML also does now work,

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

Freepik设计的雪山插图

Snowy mountains illustration Designed by Freepik

(适用于StackOverflow)

(It works on StackOverflow)

GitHub无法正确呈现标记,这会将上面的markdown标记转换为下面的标记,

GitHub does not render the markup properly, which converts the markdown markup above into something below,

<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>

推荐答案

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

The reason is that I did not set the Metadata for the image stored on AWS S3. All I need to do is to assign the correct metadata type to the file.

这篇关于GitHub README不在AWS S3上显示外部映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆