From f92a8bfb94310ae66afd3f891f9ecd9989969788 Mon Sep 17 00:00:00 2001 From: wagurano Date: Sun, 23 Sep 2018 19:57:36 +0900 Subject: Fix rails guides markdown.rb and renderer.rb to use custom header id --- guides/rails_guides/markdown.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/rails_guides/markdown.rb') diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb index 61b371363e..a98aa8fe66 100644 --- a/guides/rails_guides/markdown.rb +++ b/guides/rails_guides/markdown.rb @@ -103,7 +103,7 @@ module RailsGuides hierarchy = hierarchy[0, 3] + [node] end - node[:id] = dom_id(hierarchy) + node[:id] = dom_id(hierarchy) unless node[:id] node.inner_html = "#{node_index(hierarchy)} #{node.inner_html}" end end -- cgit v1.2.3