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
iv
gitlab-ce
Commits
a133cf3b
Commit
a133cf3b
authored
Dec 28, 2014
by
Sacred Seven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provides a temporary solution for #4
parent
65fe3f92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/helpers/gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+1
-1
No files found.
app/helpers/gitlab_markdown_helper.rb
View file @
a133cf3b
...
...
@@ -50,7 +50,7 @@ module GitlabMarkdownHelper
end
html_doc
=
Nokogiri
::
HTML
(
@markdown
.
render
(
text
))
html_doc
.
css
(
':not(li)'
).
each
{
|
dom
|
dom
[
:dir
]
=
:auto
}
html_doc
.
to_html
.
html_safe
html_doc
.
to_html
.
gsub
(
%r{
\{
anchor=([
\w
-]+)
\}
}m
)
{
|
match
|
"<a name=
\'
#{
$1
}
\'
></a>"
}.
html_safe
end
# Return the first line of +text+, up to +max_chars+, after parsing the line
...
...
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