gitlab-org--gitlab-foss/lib/banzai/pipeline/markup_pipeline.rb

22 lines
497 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module Pipeline
class MarkupPipeline < BasePipeline
def self.filters
@filters ||= FilterArray[
Filter::SanitizationFilter,
Filter::AssetProxyFilter,
Filter::ExternalLinkFilter,
Filter::PlantumlFilter,
Filter::SyntaxHighlightFilter
]
end
def self.transform_context(context)
Filter::AssetProxyFilter.transform_context(context)
end
end
end
end