Class: Banzai::Pipeline::PlainMarkdownPipeline

Inherits:
BasePipeline
  • Object
show all
Defined in:
lib/banzai/pipeline/plain_markdown_pipeline.rb

Class Method Summary collapse

Methods inherited from BasePipeline

html_pipeline, transform_context

Class Method Details

.filtersObject

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



11
12
13
14
15
16
17
18
19
# File 'lib/banzai/pipeline/plain_markdown_pipeline.rb', line 11

def self.filters
  FilterArray[
    Filter::MarkdownPreEscapeFilter,
    Filter::DollarMathPreFilter,
    Filter::MarkdownFilter,
    Filter::DollarMathPostFilter,
    Filter::MarkdownPostEscapeFilter
  ]
end