From b5b55fbde8ba83671fc57804339c0bd6c71d4d2c Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Fri, 5 Oct 2018 00:57:32 +0300 Subject: [PATCH] Wrap custom id of a header attribute into \" in rails guides Related to https://github.com/rails/rails/pull/33953 --- guides/rails_guides/markdown/renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? - %(#{header_with_id[0][0].strip}) + %(#{header_with_id[0][0].strip}) else %(#{text}) end