mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34083 from bogdanvlviv/follow-up-33953
Wrap custom id of a header attribute into \" in rails guides
This commit is contained in:
commit
c37247e187
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue