debian-mirror-gitlab/lib/banzai/pipeline/markup_pipeline.rb
2021-09-04 01:27:46 +05:30

22 lines
528 B
Ruby

# 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,
Filter::KrokiFilter
]
end
def self.transform_context(context)
Filter::AssetProxyFilter.transform_context(context)
end
end
end
end