mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
21 lines
468 B
Ruby
21 lines
468 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module Pipeline
|
|
# Pipeline for detecting possible paragraphs with quick actions,
|
|
# leveraging the markdown processor
|
|
class QuickActionPipeline < BasePipeline
|
|
def self.filters
|
|
FilterArray[
|
|
Filter::MarkdownFilter,
|
|
Filter::QuickActionFilter
|
|
]
|
|
end
|
|
|
|
def self.transform_context(context)
|
|
context.merge(disable_raw_html: true)
|
|
end
|
|
end
|
|
end
|
|
end
|