Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
4f3876a2
Commit
4f3876a2
authored
Jan 29, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show images as raw and update the documentation.
parent
741db760
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/helpers/gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+1
-0
doc/markdown/markdown.md
doc/markdown/markdown.md
+3
-3
No files found.
app/helpers/gitlab_markdown_helper.rb
View file @
4f3876a2
...
@@ -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
...
...
doc/markdown/markdown.md
View file @
4f3876a2
...
@@ -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 text
1
][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):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment