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

Add TaskList::Filter to pipeline

parent 5ef8bd33
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
......
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