无法从 Markdown 文件中的 GitHub 加载图像

Unable to load images from GitHub in markdown file

我正在 GitHub 上托管的 markdown 添加图片。

![alt-text](https://github.com/neutraltone/awesome-stock-resources/blob/master/img/splash.jpg)

当我 运行 使用 npm start 的 docusaurus 服务器时,它不会为我加载图像,但 returns 404 未找到。

通过访问图像 URL,您可以看到托管图像存在。

关于如何解决这个问题有什么想法吗?我在 Docusaurus 1.14.

谢谢

不是 Docusaurus 问题

图像 URL 是一个包含图像 的 GitHub 页面,属于 HTML 类型,而不是图像文件。您可以通过右键单击并获取来源来获取图像URL。试试这个 - https://raw.githubusercontent.com/neutraltone/awesome-stock-resources/master/img/splash.jpg

使用它以便您的图片显示

![alt-text](https://github.com/neutraltone/awesome-stock-resources/blob/master/img/splash.jpg?raw=true)