aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-05 07:45:38 +0900
committerGitHub <noreply@github.com>2018-10-05 07:45:38 +0900
commitc37247e187fd4c93ae572240ec56a3946dfc73c4 (patch)
treec21d8487796f7dc102cee3fd0c8488703840d5aa /guides
parent45be690f8e6db019aac6198ba49d608a2e14824b (diff)
parentb5b55fbde8ba83671fc57804339c0bd6c71d4d2c (diff)
downloadrails-c37247e187fd4c93ae572240ec56a3946dfc73c4.tar.gz
rails-c37247e187fd4c93ae572240ec56a3946dfc73c4.tar.bz2
rails-c37247e187fd4c93ae572240ec56a3946dfc73c4.zip
Merge pull request #34083 from bogdanvlviv/follow-up-33953
Wrap custom id of a header attribute into \" in rails guides
Diffstat (limited to 'guides')
-rw-r--r--guides/rails_guides/markdown/renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb
index 82bb4d6de1..f186ac526f 100644
--- a/guides/rails_guides/markdown/renderer.rb
+++ b/guides/rails_guides/markdown/renderer.rb
@@ -31,7 +31,7 @@ HTML
header_with_id = text.scan(/(.*){#(.*)}/)
unless header_with_id.empty?
- %(<h#{header_level} id=#{header_with_id[0][1].strip}>#{header_with_id[0][0].strip}</h#{header_level}>)
+ %(<h#{header_level} id="#{header_with_id[0][1].strip}">#{header_with_id[0][0].strip}</h#{header_level}>)
else
%(<h#{header_level}>#{text}</h#{header_level}>)
end