Class: Banzai::Pipeline::BroadcastMessagePipeline

Inherits:
DescriptionPipeline show all
Defined in:
lib/banzai/pipeline/broadcast_message_pipeline.rb

Constant Summary

Constants inherited from DescriptionPipeline

DescriptionPipeline::WHITELIST

Class Method Summary collapse

Class Method Details

.filtersObject


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

def self.filters
  @filters ||= FilterArray[
    Filter::MarkdownFilter,
    Filter::BroadcastMessageSanitizationFilter,
    Filter::EmojiFilter,
    Filter::ColorFilter,
    Filter::AutolinkFilter,
    Filter::ExternalLinkFilter
  ]
end

.transform_context(context) ⇒ Object


17
18
19
20
21
# File 'lib/banzai/pipeline/broadcast_message_pipeline.rb', line 17

def self.transform_context(context)
  super(context).merge(
    no_sourcepos: true
  )
end