diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-04 07:01:04 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-06 22:30:07 +0300 |
commit | 89b3ddd609063d93f39a02279f0f3e23b8b6b364 (patch) | |
tree | 4f36de052a6bbcfed2b884c860363037663601e7 /lib/banzai | |
parent | 26f3cc41fc41f2901cc560aaecf1fe49cadda7ca (diff) |
Allow limited Markdown in Broadcast Messages
Closes #11853
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/pipeline/broadcast_message_pipeline.rb | 16 |
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 |