We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c97d895 commit 8af5c32Copy full SHA for 8af5c32
1 file changed
lib/html/pipeline/toc_filter.rb
@@ -22,7 +22,7 @@ def call
22
23
uniq = (headers[name] > 0) ? "-#{headers[name]}" : ''
24
headers[name] += 1
25
- node['id'] = "#{name}#{uniq}"
+ node['id'] = "toc-#{name}#{uniq}"
26
27
if was < level
28
while was < level
@@ -37,7 +37,7 @@ def call
37
end
38
toc << "<li>"
39
40
- toc << "<a href=\"##{name}#{uniq}\">#{node.inner_html}</a>"
+ toc << "<a href=\"#toc-#{name}#{uniq}\">#{node.inner_html}</a>"
41
42
43
length = 0
0 commit comments