Commit 4f3876a2 authored by Marin Jankovski's avatar Marin Jankovski

Show images as raw and update the documentation.

parent 741db760
...@@ -173,6 +173,7 @@ module GitlabMarkdownHelper ...@@ -173,6 +173,7 @@ module GitlabMarkdownHelper
# eg. doc/api is directory and doc/README.md is file # eg. doc/api is directory and doc/README.md is file
def local_path(path) def local_path(path)
return "tree" if Tree.new(@repository, current_ref, path).entries.any? return "tree" if Tree.new(@repository, current_ref, path).entries.any?
return "raw" if @repository.blob_at(current_ref, path).image?
return "blob" return "blob"
end end
......
...@@ -326,12 +326,12 @@ Some text to show that the reference links can follow later. ...@@ -326,12 +326,12 @@ Some text to show that the reference links can follow later.
Here's our logo (hover to see the title text): Here's our logo (hover to see the title text):
Inline-style: Inline-style:
![alt text](/assets/logo-white.png "Logo Title Text 1") ![alt text](assets/logo-white.png)
Reference-style: Reference-style:
![alt text][logo] ![alt text1][logo]
[logo]: /assets/logo-white.png "Logo Title Text 2" [logo]: assets/logo-white.png
Here's our logo (hover to see the title text): Here's our logo (hover to see the title text):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment