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

26 lines
543 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module Pipeline
class BroadcastMessagePipeline < DescriptionPipeline
def self.filters
2016-03-01 15:54:35 -05:00
@filters ||= FilterArray[
Filter::MarkdownFilter,
Filter::SanitizationFilter,
Filter::EmojiFilter,
2017-12-20 06:39:40 -05:00
Filter::ColorFilter,
Filter::AutolinkFilter,
Filter::ExternalLinkFilter
]
end
def self.transform_context(context)
super(context).merge(
no_sourcepos: true
)
end
end
end
end