Wrap custom id of a header attribute into \" in rails guides

Related to https://github.com/rails/rails/pull/33953
This commit is contained in:
bogdanvlviv 2018-10-05 00:57:32 +03:00
parent 92be3848f9
commit b5b55fbde8
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD
1 changed files with 1 additions and 1 deletions

View File

@ -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