summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-02-09 11:44:08 +0000
committerDouwe Maan <douwe@gitlab.com>2016-02-09 11:44:08 +0000
commitaacde42d55cb485413ced7eb64c396c47e58fa47 (patch)
treeb67458e3113a43ab489b08fc63e163dd6df89d5f /lib
parentceb342c71648d8055b1dc2c8909a563f82edfcef (diff)
parent89b3ddd609063d93f39a02279f0f3e23b8b6b364 (diff)
downloadgitlab-ce-aacde42d55cb485413ced7eb64c396c47e58fa47.tar.gz
Merge branch 'rs-broadcast-markdown' into 'master'
Allow limited Markdown in Broadcast Messages Closes #11853 See merge request !2695
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/pipeline/broadcast_message_pipeline.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/broadcast_message_pipeline.rb b/lib/banzai/pipeline/broadcast_message_pipeline.rb
new file mode 100644
index 00000000000..4bb85e24c38
--- /dev/null
+++ b/lib/banzai/pipeline/broadcast_message_pipeline.rb
@@ -0,0 +1,16 @@
+module Banzai
+ module Pipeline
+ class BroadcastMessagePipeline < DescriptionPipeline
+ def self.filters
+ @filters ||= [
+ Filter::MarkdownFilter,
+ Filter::SanitizationFilter,
+
+ Filter::EmojiFilter,
+ Filter::AutolinkFilter,
+ Filter::ExternalLinkFilter
+ ]
+ end
+ end
+ end
+end