summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-29 13:07:38 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:28:11 -0600
commit131a04d7962b01daa58b8e5efe3f1359a3e73fe1 (patch)
treec08cef8bce50b182a750fb9453c8585ccdcad686 /lib/banzai
parent19f174bc68e0dc17e0298d8903bc855868334776 (diff)
downloadgitlab-ce-131a04d7962b01daa58b8e5efe3f1359a3e73fe1.tar.gz
remove underscore from user-content id namespace22781-user-generated-permalinks
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/table_of_contents_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/table_of_contents_filter.rb b/lib/banzai/filter/table_of_contents_filter.rb
index 80669953723..8e7084f2543 100644
--- a/lib/banzai/filter/table_of_contents_filter.rb
+++ b/lib/banzai/filter/table_of_contents_filter.rb
@@ -36,7 +36,7 @@ module Banzai
if header_content = node.children.first
# namespace detection will be automatically handled via javascript (see issue #22781)
- namespace = "user-content_"
+ namespace = "user-content-"
href = "#{id}#{uniq}"
push_toc(href, text)
header_content.add_previous_sibling(anchor_tag("#{namespace}#{href}", href))