summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-01-16 15:27:05 -0500
committerDouwe Maan <douwe@selenight.nl>2017-01-16 16:14:18 -0500
commitdbfa58e2da7f939734eee5a599b4014d6095dde3 (patch)
tree44b7265dc7a20fcd1d4cc8f5782514837e959f17 /lib/banzai/pipeline
parent142be72a2aa6920fa60cc267737f2e702fdeae12 (diff)
downloadgitlab-ce-dbfa58e2da7f939734eee5a599b4014d6095dde3.tar.gz
Copying a rendered issue/comment will paste into GFM textareas as actual GFM
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/gfm_pipeline.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/gfm_pipeline.rb b/lib/banzai/pipeline/gfm_pipeline.rb
index 5a1f873496c..09038d38b1f 100644
--- a/lib/banzai/pipeline/gfm_pipeline.rb
+++ b/lib/banzai/pipeline/gfm_pipeline.rb
@@ -1,6 +1,9 @@
module Banzai
module Pipeline
class GfmPipeline < BasePipeline
+ # Every filter should have an entry in app/assets/javascripts/copy_as_gfm.js.es6,
+ # in reverse order.
+ # Should have test coverage in spec/features/copy_as_gfm_spec.rb.
def self.filters
@filters ||= FilterArray[
Filter::SyntaxHighlightFilter,