mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 17:08:32 +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
|