Commit 77a6746a authored by Robert Speicher's avatar Robert Speicher
Browse files

Run SanitizationFilter before our reference filters

parent 04221385d8ae
......@@ -92,9 +92,14 @@ def gfm_with_options(text, options = {}, project = @project, html_options = {})
# Custom filters for html-pipeline:
#
# SanitizationFilter should come first so that all generated reference HTML
# goes through untouched.
#
# See https://gitlab.com/gitlab-org/html-pipeline-gitlab for more filters
def filters
[
HTML::Pipeline::SanitizationFilter,
Gitlab::Markdown::UserReferenceFilter,
Gitlab::Markdown::IssueReferenceFilter,
Gitlab::Markdown::ExternalIssueReferenceFilter,
......@@ -103,8 +108,8 @@ def filters
Gitlab::Markdown::CommitRangeReferenceFilter,
Gitlab::Markdown::CommitReferenceFilter,
Gitlab::Markdown::LabelReferenceFilter,
HTML::Pipeline::Gitlab::GitlabEmojiFilter,
HTML::Pipeline::SanitizationFilter
HTML::Pipeline::Gitlab::GitlabEmojiFilter
]
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