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

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

25 lines
558 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::BroadcastMessageSanitizationFilter,
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