summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-03-05 14:14:11 +0000
committerDouwe Maan <douwe@gitlab.com>2019-03-05 14:14:11 +0000
commit59afa80ae08767cd8766eb0104c82e4aa7c27ed9 (patch)
tree3c618293ca0c02bdc40783fd0ef8387b9e4335f0
parent231b3ca6257c5fa6fef958992f3587b83fd135d4 (diff)
downloadgitlab-ce-59afa80ae08767cd8766eb0104c82e4aa7c27ed9.tar.gz
Add SyntaxHighlightFilter to markup pipeline
-rw-r--r--changelogs/unreleased/enable-markup-highlighting.yml5
-rw-r--r--lib/banzai/pipeline/markup_pipeline.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/changelogs/unreleased/enable-markup-highlighting.yml b/changelogs/unreleased/enable-markup-highlighting.yml
new file mode 100644
index 00000000000..33fcf784f7d
--- /dev/null
+++ b/changelogs/unreleased/enable-markup-highlighting.yml
@@ -0,0 +1,5 @@
+---
+title: Enable syntax highlighting to other supported markups
+merge_request: 25761
+author:
+type: other
diff --git a/lib/banzai/pipeline/markup_pipeline.rb b/lib/banzai/pipeline/markup_pipeline.rb
index db79a22549c..ceba082cd4f 100644
--- a/lib/banzai/pipeline/markup_pipeline.rb
+++ b/lib/banzai/pipeline/markup_pipeline.rb
@@ -7,7 +7,8 @@ module Banzai
@filters ||= FilterArray[
Filter::SanitizationFilter,
Filter::ExternalLinkFilter,
- Filter::PlantumlFilter
+ Filter::PlantumlFilter,
+ Filter::SyntaxHighlightFilter
]
end
end