diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-31 00:44:22 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-06 01:13:21 +0300 |
commit | 1e6fc0c6a440ad707d990282ab7a93c178e35cfa (patch) | |
tree | 6722a5fcd58bc2d54a4461d00df403a664513bef /lib/banzai | |
parent | 4ed369558e5642ec69c160be5658bb3c6a495bbd (diff) |
Define a limited set of filters for SingleLinePipeline
Removes the following filters from its parent GfmPipeline:
- SyntaxHighlightFilter
- UploadLinkFilter
- TableOfContentsFilter
- LabelReferenceFilter
- TaskListFilter
Closes #1697
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/pipeline/single_line_pipeline.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/single_line_pipeline.rb b/lib/banzai/pipeline/single_line_pipeline.rb index 6725c9039a9..a3c9d4f43aa 100644 --- a/lib/banzai/pipeline/single_line_pipeline.rb +++ b/lib/banzai/pipeline/single_line_pipeline.rb @@ -3,7 +3,23 @@ require 'banzai' module Banzai module Pipeline class SingleLinePipeline < GfmPipeline + def self.filters + @filters ||= [ + Filter::SanitizationFilter, + Filter::EmojiFilter, + Filter::AutolinkFilter, + Filter::ExternalLinkFilter, + + Filter::UserReferenceFilter, + Filter::IssueReferenceFilter, + Filter::ExternalIssueReferenceFilter, + Filter::MergeRequestReferenceFilter, + Filter::SnippetReferenceFilter, + Filter::CommitRangeReferenceFilter, + Filter::CommitReferenceFilter, + ] + end end end end |