diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-10-05 00:57:32 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-10-05 00:57:32 +0300 |
commit | b5b55fbde8ba83671fc57804339c0bd6c71d4d2c (patch) | |
tree | d087b0852c82459e9466cce01e67feb03525450e /guides | |
parent | 92be3848f91ff07bf8903891a502378248e5d96a (diff) | |
download | rails-b5b55fbde8ba83671fc57804339c0bd6c71d4d2c.tar.gz rails-b5b55fbde8ba83671fc57804339c0bd6c71d4d2c.tar.bz2 rails-b5b55fbde8ba83671fc57804339c0bd6c71d4d2c.zip |
Wrap custom id of a header attribute into \" in rails guides
Related to https://github.com/rails/rails/pull/33953
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 |