2018-10-06 23:10:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-02 14:52:19 +00:00
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class MarkupPipeline < BasePipeline
|
|
|
|
def self.filters
|
|
|
|
@filters ||= FilterArray[
|
|
|
|
Filter::SanitizationFilter,
|
2019-02-20 23:51:55 +00:00
|
|
|
Filter::AssetProxyFilter,
|
2017-05-02 14:52:19 +00:00
|
|
|
Filter::ExternalLinkFilter,
|
2019-03-05 14:14:11 +00:00
|
|
|
Filter::PlantumlFilter,
|
2021-05-19 18:10:39 +00:00
|
|
|
Filter::SyntaxHighlightFilter,
|
|
|
|
Filter::KrokiFilter
|
2017-05-02 14:52:19 +00:00
|
|
|
]
|
|
|
|
end
|
2019-02-20 23:51:55 +00:00
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
Filter::AssetProxyFilter.transform_context(context)
|
|
|
|
end
|
2017-05-02 14:52:19 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|