summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-06-18 13:28:21 +0200
committerDouwe Maan <douwe@selenight.nl>2018-06-18 13:28:39 +0200
commitb762fc4b460bed9f0510f19e20130fc331fa1efe (patch)
tree2fa15d7c7a8ba5c2183edbf4fa2d1d1221fd6aca /spec
parent99fdbe4c230205510e1d7061e68bb1a003913d4b (diff)
downloadgitlab-ce-b762fc4b460bed9f0510f19e20130fc331fa1efe.tar.gz
Allow trailing whitespace on blockquote fence lines
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/banzai/filter/blockquote_fence_filter_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/banzai/filter/blockquote_fence_filter_spec.rb b/spec/lib/banzai/filter/blockquote_fence_filter_spec.rb
index 8224dc5a6b9..b645e49bd43 100644
--- a/spec/lib/banzai/filter/blockquote_fence_filter_spec.rb
+++ b/spec/lib/banzai/filter/blockquote_fence_filter_spec.rb
@@ -11,4 +11,8 @@ describe Banzai::Filter::BlockquoteFenceFilter do
expect(output).to eq(expected)
end
+
+ it 'allows trailing whitespace on blockquote fence lines' do
+ expect(filter(">>> \ntest\n>>> ")).to eq("> test")
+ end
end