diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-05 07:45:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 07:45:38 +0900 |
commit | c37247e187fd4c93ae572240ec56a3946dfc73c4 (patch) | |
tree | c21d8487796f7dc102cee3fd0c8488703840d5aa /guides | |
parent | 45be690f8e6db019aac6198ba49d608a2e14824b (diff) | |
parent | b5b55fbde8ba83671fc57804339c0bd6c71d4d2c (diff) | |
download | rails-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.rb | 2 |
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 |