summaryrefslogtreecommitdiff
path: root/lib/banzai/filter/gollum_tags_filter.rb
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-05 18:45:35 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-04-05 18:45:35 +0100
commit8131a02fef9241f396c827cb7613ddd307f0a551 (patch)
treeeca9cac2c0ba6e228b42bab90d8fd0cf0a9b191e /lib/banzai/filter/gollum_tags_filter.rb
parentee1954efc19470c477ddbdf965731dc25598e6b0 (diff)
parentf103475766fecc6e6fdf996e9cfaaa41e795962f (diff)
downloadgitlab-ce-8131a02fef9241f396c827cb7613ddd307f0a551.tar.gz
Merge remote-tracking branch 'origin/master' into deprecation-warning-for-dynamic-milestones
Diffstat (limited to 'lib/banzai/filter/gollum_tags_filter.rb')
-rw-r--r--lib/banzai/filter/gollum_tags_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/gollum_tags_filter.rb b/lib/banzai/filter/gollum_tags_filter.rb
index c2b42673376..f2e9a5a1116 100644
--- a/lib/banzai/filter/gollum_tags_filter.rb
+++ b/lib/banzai/filter/gollum_tags_filter.rb
@@ -57,7 +57,7 @@ module Banzai
ALLOWED_IMAGE_EXTENSIONS = /.+(jpg|png|gif|svg|bmp)\z/i.freeze
def call
- search_text_nodes(doc).each do |node|
+ doc.search(".//text()").each do |node|
# A Gollum ToC tag is `[[_TOC_]]`, but due to MarkdownFilter running
# before this one, it will be converted into `[[<em>TOC</em>]]`, so it
# needs special-case handling