GFM inline PNG image does not appear because it links via blob rather than raw
Created by: nudgegoonies
Hello, if i inline an image with a relative path the image is not shown inside the browser because the link points to .../blob/... rather than .../raw/...
Example README.md:
test

test
The ./ is needed because otherwise gitlab would search for the image in the wiki and not in the same path.
The example generates the image-link:
http://SERVER/NAMESPACE/PROJECT/blob/master/png.png
The problem is, for inlining the link has to be this one:
http://SERVER/NAMESPACE/PROJECT/raw/master/png.png
I tested this with version 6.3.1
Regards, Andreas
Here is the output of the check:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ...
[...]
Running /var/lib/gitlab/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/lib/gitlab/repositories: OK
/var/lib/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.15
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
[...]
Projects have satellites? ...
[...]
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)
Checking GitLab ... Finished