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