2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class MarkupPipeline < BasePipeline
|
|
|
|
def self.filters
|
|
|
|
@filters ||= FilterArray[
|
|
|
|
Filter::SanitizationFilter,
|
2019-09-04 21:01:54 +05:30
|
|
|
Filter::AssetProxyFilter,
|
2017-08-17 22:00:37 +05:30
|
|
|
Filter::ExternalLinkFilter,
|
2019-07-07 11:18:12 +05:30
|
|
|
Filter::PlantumlFilter,
|
2022-10-11 01:57:18 +05:30
|
|
|
Filter::KrokiFilter,
|
|
|
|
Filter::SyntaxHighlightFilter
|
2017-08-17 22:00:37 +05:30
|
|
|
]
|
|
|
|
end
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
def self.transform_context(context)
|
|
|
|
Filter::AssetProxyFilter.transform_context(context)
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|