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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
681 B
Ruby
Raw Permalink 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,
Filter::WikiLinkFilter,
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