Skip to content
Snippets Groups Projects
Commit 61c73575 authored by Robert Speicher's avatar Robert Speicher
Browse files

Add TaskList::Filter to pipeline

parent 5ef8bd33
Branches
Tags
1 merge request!599Use task_list gem for task lists
require 'html/pipeline'
require 'task_list/filter'
 
module Gitlab
# Custom parser for GitLab-flavored Markdown
Loading
Loading
@@ -76,9 +77,9 @@ module Gitlab
 
text = result[:output].to_html(save_with: save_options)
 
if options[:parse_tasks]
text = parse_tasks(text)
end
# if options[:parse_tasks]
# text = parse_tasks(text)
# end
 
text.html_safe
end
Loading
Loading
@@ -106,7 +107,9 @@ module Gitlab
Gitlab::Markdown::SnippetReferenceFilter,
Gitlab::Markdown::CommitRangeReferenceFilter,
Gitlab::Markdown::CommitReferenceFilter,
Gitlab::Markdown::LabelReferenceFilter
Gitlab::Markdown::LabelReferenceFilter,
TaskList::Filter
]
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment