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

26 lines
647 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-05-09 08:14:24 -04:00
module Banzai
module Pipeline
class AsciiDocPipeline < BasePipeline
def self.filters
FilterArray[
Filter::AsciiDocSanitizationFilter,
Filter::AssetProxyFilter,
Filter::SyntaxHighlightFilter,
2017-05-09 08:14:24 -04:00
Filter::ExternalLinkFilter,
Filter::PlantumlFilter,
Filter::ColorFilter,
Filter::ImageLazyLoadFilter,
Filter::ImageLinkFilter,
2017-05-09 08:14:24 -04:00
Filter::AsciiDocPostProcessingFilter
]
end
def self.transform_context(context)
Filter::AssetProxyFilter.transform_context(context)
end
2017-05-09 08:14:24 -04:00
end
end
end