Commit 4f3876a2b6f3e0c14807058ba73336c1ebcb7613
1 parent
741db760
Exists in
spb-stable
and in
3 other branches
Show images as raw and update the documentation.
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
app/helpers/gitlab_markdown_helper.rb
... | ... | @@ -173,6 +173,7 @@ module GitlabMarkdownHelper |
173 | 173 | # eg. doc/api is directory and doc/README.md is file |
174 | 174 | def local_path(path) |
175 | 175 | return "tree" if Tree.new(@repository, current_ref, path).entries.any? |
176 | + return "raw" if @repository.blob_at(current_ref, path).image? | |
176 | 177 | return "blob" |
177 | 178 | end |
178 | 179 | ... | ... |
doc/markdown/markdown.md
... | ... | @@ -326,12 +326,12 @@ Some text to show that the reference links can follow later. |
326 | 326 | Here's our logo (hover to see the title text): |
327 | 327 | |
328 | 328 | Inline-style: |
329 | -  | |
329 | +  | |
330 | 330 | |
331 | 331 | Reference-style: |
332 | - ![alt text][logo] | |
332 | + ![alt text1][logo] | |
333 | 333 | |
334 | - [logo]: /assets/logo-white.png "Logo Title Text 2" | |
334 | + [logo]: assets/logo-white.png | |
335 | 335 | |
336 | 336 | Here's our logo (hover to see the title text): |
337 | 337 | ... | ... |