Show images as raw and update the documentation.
This commit is contained in:
parent
741db7603c
commit
4f3876a2b6
2 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||||
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):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue