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 /lib | |
| parent | 99fdbe4c230205510e1d7061e68bb1a003913d4b (diff) | |
| download | gitlab-ce-b762fc4b460bed9f0510f19e20130fc331fa1efe.tar.gz | |
Allow trailing whitespace on blockquote fence lines
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 |
