Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
b3a99154947c
Commit
77a6746a
authored
Apr 07, 2015
by
Robert Speicher
Browse files
Run SanitizationFilter before our reference filters
parent
04221385d8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/markdown.rb
View file @
b3a99154
...
...
@@ -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
::
Sanitization
Filter
HTML
::
Pipeline
::
Gitlab
::
GitlabEmoji
Filter
]
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