Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-29 22:07:38 +0300
committerMike Greiling <mike@pixelcog.com>2016-12-01 00:28:11 +0300
commit131a04d7962b01daa58b8e5efe3f1359a3e73fe1 (patch)
treec08cef8bce50b182a750fb9453c8585ccdcad686 /lib/banzai
parent19f174bc68e0dc17e0298d8903bc855868334776 (diff)
remove underscore from user-content id namespace
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))