Warm tip: This article is reproduced from stackoverflow.com, please click
dart github Markdown dart-pub

Dart pub.dev published plugin, broken images in README.md

发布于 2020-04-11 22:07:21

I published a plugin on pub.dev and also on GitHub, I have 2 screenshots displaying in README.md from Github link. These are fine on Github but are broken on pub.dev. I tried all approaches but still the same.

Screenshot# 01             |  Screenshot# 02
:-------------------------:|:-------------------------:
<img src="https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_1.png"/> | <img src="https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_2.png"/> 

Github: https://github.com/shah-xad/flutter_tex

pub.dev: https://pub.dev/packages/flutter_tex

Questioner
Shahzad Akram
Viewed
79
VonC 2020-02-02 13:56

The actual URL, to be used in pub.dev, should be:

 https://raw.githubusercontent.com/shah-xad/flutter_tex/master/screenshots/Screenshot_1.png
 NOT:
 https://github.com/shahzadakram67/flutter_tex/blob/master/screenshots/Screenshot_1.png