debian-mirror-gitlab/lib/banzai/pipeline/plain_markdown_pipeline.rb
2023-03-17 16:20:25 +05:30

22 lines
738 B
Ruby

# frozen_string_literal: true
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
end
end
end