Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-05-02 17:52:19 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-10 17:44:20 +0300
commit99996b6bc7c13e7e7f871919942907b380d4b58c (patch)
treec87b232ade284781ae96d2819636c639d584972b /lib/banzai/pipeline/markup_pipeline.rb
parent9b03ed0a182c9ad96957085826cc85f8f229569c (diff)
Merge branch 'bvl-security-9-1-markup-pipeline'
(security-9-1) Render asciidoc & other markup using banzai in a pipeline See merge request !2098
Diffstat (limited to 'lib/banzai/pipeline/markup_pipeline.rb')
-rw-r--r--lib/banzai/pipeline/markup_pipeline.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/markup_pipeline.rb b/lib/banzai/pipeline/markup_pipeline.rb
new file mode 100644
index 00000000000..c56d908009f
--- /dev/null
+++ b/lib/banzai/pipeline/markup_pipeline.rb
@@ -0,0 +1,13 @@
+module Banzai
+ module Pipeline
+ class MarkupPipeline < BasePipeline
+ def self.filters
+ @filters ||= FilterArray[
+ Filter::SanitizationFilter,
+ Filter::ExternalLinkFilter,
+ Filter::PlantumlFilter
+ ]
+ end
+ end
+ end
+end