2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
module Banzai
|
|
|
|
module Pipeline
|
|
|
|
class PlainMarkdownPipeline < BasePipeline
|
2023-03-17 16:20:25 +05:30
|
|
|
# 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
|
2015-12-23 02:04:40 +05:30
|
|
|
def self.filters
|
2016-06-02 11:05:42 +05:30
|
|
|
FilterArray[
|
2021-03-11 19:13:27 +05:30
|
|
|
Filter::MarkdownPreEscapeFilter,
|
2023-03-17 16:20:25 +05:30
|
|
|
Filter::DollarMathPreFilter,
|
2021-03-11 19:13:27 +05:30
|
|
|
Filter::MarkdownFilter,
|
2023-03-17 16:20:25 +05:30
|
|
|
Filter::DollarMathPostFilter,
|
2021-03-11 19:13:27 +05:30
|
|
|
Filter::MarkdownPostEscapeFilter
|
2015-12-23 02:04:40 +05:30
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|