summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-08-21 08:20:30 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-08-21 08:20:30 +0000
commit198f8a2c3d3d173fe59e948e6bab49440a658efa (patch)
tree90b94e8dc3a28d2716f08a2bc1375d24c6027803 /lib/banzai/pipeline
parent5dabe6d1f309530a26a11354b994bdbc988b852f (diff)
downloadgitlab-ce-198f8a2c3d3d173fe59e948e6bab49440a658efa.tar.gz
Resolve "Wiki: links with spaces in the url render incorrectly with CommonMark"
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/wiki_pipeline.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/wiki_pipeline.rb b/lib/banzai/pipeline/wiki_pipeline.rb
index c37b8e71cb0..737ff0cc818 100644
--- a/lib/banzai/pipeline/wiki_pipeline.rb
+++ b/lib/banzai/pipeline/wiki_pipeline.rb
@@ -5,6 +5,7 @@ module Banzai
@filters ||= begin
super.insert_after(Filter::TableOfContentsFilter, Filter::GollumTagsFilter)
.insert_before(Filter::TaskListFilter, Filter::WikiLinkFilter)
+ .insert_before(Filter::WikiLinkFilter, Filter::SpacedLinkFilter)
end
end
end