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:
authorDouwe Maan <douwe@selenight.nl>2018-06-18 14:28:21 +0300
committerDouwe Maan <douwe@selenight.nl>2018-06-18 14:28:39 +0300
commitb762fc4b460bed9f0510f19e20130fc331fa1efe (patch)
tree2fa15d7c7a8ba5c2183edbf4fa2d1d1221fd6aca /spec/lib/banzai
parent99fdbe4c230205510e1d7061e68bb1a003913d4b (diff)
Allow trailing whitespace on blockquote fence lines
Diffstat (limited to 'spec/lib/banzai')
-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