Class: Banzai::Pipeline::MarkupPipeline

Inherits:
BasePipeline show all
Defined in:
lib/banzai/pipeline/markup_pipeline.rb

Class Method Summary collapse

Methods inherited from BasePipeline

html_pipeline

Class Method Details

.filtersObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/banzai/pipeline/markup_pipeline.rb', line 6

def self.filters
  @filters ||= FilterArray[
    Filter::SanitizationFilter,
    Filter::SanitizeLinkFilter,
    Filter::CodeLanguageFilter,
    Filter::AssetProxyFilter,
    Filter::ExternalLinkFilter,
    Filter::PlantumlFilter,
    Filter::KrokiFilter,
    Filter::SyntaxHighlightFilter # this filter should remain at the end
  ]
end

.transform_context(context) ⇒ Object



19
20
21
# File 'lib/banzai/pipeline/markup_pipeline.rb', line 19

def self.transform_context(context)
  Filter::AssetProxyFilter.transform_context(context)
end