aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/markdown.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/rails_guides/markdown.rb')
-rw-r--r--guides/rails_guides/markdown.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb
index 8a974cdf2c..0b89c05bf1 100644
--- a/guides/rails_guides/markdown.rb
+++ b/guides/rails_guides/markdown.rb
@@ -65,11 +65,11 @@ module RailsGuides
when 'h3'
hierarchy = [node]
node[:id] = dom_id(hierarchy)
- @raw_index += "1. [#{node.text}](##{node[:id]})\n"
+ @raw_index += "1. [#{node.inner_html}](##{node[:id]})\n"
when 'h4'
hierarchy = hierarchy[0, 1] + [node]
node[:id] = dom_id(hierarchy)
- @raw_index += " * [#{node.text}](##{node[:id]})\n"
+ @raw_index += " * [#{node.inner_html}](##{node[:id]})\n"
when 'h5'
hierarchy = hierarchy[0, 2] + [node]
node[:id] = dom_id(hierarchy)
@@ -78,7 +78,7 @@ module RailsGuides
node[:id] = dom_id(hierarchy)
end
- node.inner_html = "#{node_index(hierarchy)} #{node.text}"
+ node.inner_html = "#{node_index(hierarchy)} #{node.inner_html}"
end
end
end.to_html