Commit 61c73575 authored by Robert Speicher's avatar Robert Speicher

Add TaskList::Filter to pipeline

parent 5ef8bd33
require 'html/pipeline'
require 'task_list/filter'
module Gitlab
# Custom parser for GitLab-flavored Markdown
......@@ -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
......@@ -106,7 +107,9 @@ module Gitlab
Gitlab::Markdown::SnippetReferenceFilter,
Gitlab::Markdown::CommitRangeReferenceFilter,
Gitlab::Markdown::CommitReferenceFilter,
Gitlab::Markdown::LabelReferenceFilter
Gitlab::Markdown::LabelReferenceFilter,
TaskList::Filter
]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment