mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
25 lines
643 B
Ruby
25 lines
643 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module Pipeline
|
|
class MarkupPipeline < BasePipeline
|
|
def self.filters
|
|
@filters ||= FilterArray[
|
|
Filter::SanitizationFilter,
|
|
Filter::SanitizeLinkFilter,
|
|
Filter::CodeLanguageFilter,
|
|
Filter::AssetProxyFilter,
|
|
Filter::ExternalLinkFilter,
|
|
Filter::PlantumlFilter,
|
|
Filter::KrokiFilter,
|
|
Filter::SyntaxHighlightFilter # this filter should remain at the end
|
|
]
|
|
end
|
|
|
|
def self.transform_context(context)
|
|
Filter::AssetProxyFilter.transform_context(context)
|
|
end
|
|
end
|
|
end
|
|
end
|