diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-06 17:14:47 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-06 17:14:47 +0000 |
commit | f3fa98e93a0017af182ca18b7138a5f530432842 (patch) | |
tree | eb112a58840cc02d40cbecfb4dcd0de386cd7c34 /lib | |
parent | 9e8f3058af2bd5a80dbff7f84d8c192895cee7d0 (diff) | |
parent | 4dd1f906fd60bebd433dc9c4b5879c1e575fb735 (diff) | |
download | gitlab-ce-f3fa98e93a0017af182ca18b7138a5f530432842.tar.gz |
Merge branch '17939-osw-patch-support-gfm' into 'master'
Add support for patch link extension for commit links on GFM
Closes #17939
See merge request gitlab-org/gitlab-ce!18229
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/abstract_reference_filter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/banzai/filter/abstract_reference_filter.rb b/lib/banzai/filter/abstract_reference_filter.rb index 6efaed7e624..a848154b2d4 100644 --- a/lib/banzai/filter/abstract_reference_filter.rb +++ b/lib/banzai/filter/abstract_reference_filter.rb @@ -215,6 +215,10 @@ module Banzai extras << "comment #{$1}" end + extension = matches[:extension] if matches.names.include?("extension") + + extras << extension if extension + extras end |