diff options
| author | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-18 13:02:23 +0000 |
|---|---|---|
| committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-18 13:02:23 +0000 |
| commit | 8451c5ff605ee1e8ec3aa79ac101e2cce7b920f8 (patch) | |
| tree | af7aefc1675c14331ac902a86080a386a8119470 /lib | |
| parent | 3c725a2a5d340a2edae8a79ad6af3a0924cc8f14 (diff) | |
| parent | b762fc4b460bed9f0510f19e20130fc331fa1efe (diff) | |
| download | gitlab-ce-8451c5ff605ee1e8ec3aa79ac101e2cce7b920f8.tar.gz | |
Merge branch 'dm-blockquote-trailing-whitespace' into 'master'
Allow trailing whitespace on blockquote fence lines
See merge request gitlab-org/gitlab-ce!19960
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/banzai/filter/blockquote_fence_filter.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/banzai/filter/blockquote_fence_filter.rb b/lib/banzai/filter/blockquote_fence_filter.rb index d2c4b1e4d76..fbfcd72c916 100644 --- a/lib/banzai/filter/blockquote_fence_filter.rb +++ b/lib/banzai/filter/blockquote_fence_filter.rb @@ -10,7 +10,7 @@ module Banzai ^``` .+? - \n```$ + \n```\ *$ ) | (?<html> @@ -19,9 +19,9 @@ module Banzai # Anything, including `>>>` blocks which are ignored by this filter # </tag> - ^<[^>]+?>\n + ^<[^>]+?>\ *\n .+? - \n<\/[^>]+?>$ + \n<\/[^>]+?>\ *$ ) | (?: @@ -30,14 +30,14 @@ module Banzai # Anything, including code and HTML blocks # >>> - ^>>>\n + ^>>>\ *\n (?<quote> (?: # Any character that doesn't introduce a code or HTML block (?! ^``` | - ^<[^>]+?>\n + ^<[^>]+?>\ *\n ) . | @@ -48,7 +48,7 @@ module Banzai \g<html> )+? ) - \n>>>$ + \n>>>\ *$ ) }mx.freeze |
