diff options
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r-- | lib/banzai/pipeline/plain_markdown_pipeline.rb | 7 | ||||
-rw-r--r-- | lib/banzai/pipeline/service_desk_email_pipeline.rb | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/plain_markdown_pipeline.rb b/lib/banzai/pipeline/plain_markdown_pipeline.rb index 1da0f72996b..205bbc2140d 100644 --- a/lib/banzai/pipeline/plain_markdown_pipeline.rb +++ b/lib/banzai/pipeline/plain_markdown_pipeline.rb @@ -3,10 +3,17 @@ module Banzai module Pipeline class PlainMarkdownPipeline < BasePipeline + # DollarMathPreFilter and DollarMathPostFilter need to be included here, + # rather than in another pipeline. However, since dollar math would most + # likely be supported as an extension in any other markdown parser we used, + # it is not out of place. We are considering this a part of the actual + # markdown processing def self.filters FilterArray[ Filter::MarkdownPreEscapeFilter, + Filter::DollarMathPreFilter, Filter::MarkdownFilter, + Filter::DollarMathPostFilter, Filter::MarkdownPostEscapeFilter ] end diff --git a/lib/banzai/pipeline/service_desk_email_pipeline.rb b/lib/banzai/pipeline/service_desk_email_pipeline.rb new file mode 100644 index 00000000000..cc7cd8a92b8 --- /dev/null +++ b/lib/banzai/pipeline/service_desk_email_pipeline.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Banzai + module Pipeline + class ServiceDeskEmailPipeline < EmailPipeline + def self.filters + super.insert_before(Filter::ExternalLinkFilter, Banzai::Filter::ServiceDeskUploadLinkFilter) + end + end + end +end |