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
Léo-Paul Géneau
gitlab-ce
Commits
61c73575
Commit
61c73575
authored
Apr 29, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TaskList::Filter to pipeline
parent
5ef8bd33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/gitlab/markdown.rb
lib/gitlab/markdown.rb
+7
-4
No files found.
lib/gitlab/markdown.rb
View file @
61c73575
require
'html/pipeline'
require
'html/pipeline'
require
'task_list/filter'
module
Gitlab
module
Gitlab
# Custom parser for GitLab-flavored Markdown
# Custom parser for GitLab-flavored Markdown
...
@@ -76,9 +77,9 @@ module Gitlab
...
@@ -76,9 +77,9 @@ module Gitlab
text
=
result
[
:output
].
to_html
(
save_with:
save_options
)
text
=
result
[
:output
].
to_html
(
save_with:
save_options
)
if
options
[
:parse_tasks
]
#
if options[:parse_tasks]
text
=
parse_tasks
(
text
)
#
text = parse_tasks(text)
end
#
end
text
.
html_safe
text
.
html_safe
end
end
...
@@ -106,7 +107,9 @@ module Gitlab
...
@@ -106,7 +107,9 @@ module Gitlab
Gitlab
::
Markdown
::
SnippetReferenceFilter
,
Gitlab
::
Markdown
::
SnippetReferenceFilter
,
Gitlab
::
Markdown
::
CommitRangeReferenceFilter
,
Gitlab
::
Markdown
::
CommitRangeReferenceFilter
,
Gitlab
::
Markdown
::
CommitReferenceFilter
,
Gitlab
::
Markdown
::
CommitReferenceFilter
,
Gitlab
::
Markdown
::
LabelReferenceFilter
Gitlab
::
Markdown
::
LabelReferenceFilter
,
TaskList
::
Filter
]
]
end
end
...
...
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