diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-06-18 13:28:21 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-06-18 13:28:39 +0200 |
commit | b762fc4b460bed9f0510f19e20130fc331fa1efe (patch) | |
tree | 2fa15d7c7a8ba5c2183edbf4fa2d1d1221fd6aca /spec | |
parent | 99fdbe4c230205510e1d7061e68bb1a003913d4b (diff) | |
download | gitlab-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.rb | 4 |
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 |