aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-01-03 12:54:20 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-01-03 12:57:29 +0100
commit0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8 (patch)
tree1aefe250e5f4c33d4d6dca55216483e8225a2d30 /guides/rails_guides
parentece28185a83ba42d661f36c65a76ddefb5b9908b (diff)
downloadrails-0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8.tar.gz
rails-0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8.tar.bz2
rails-0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8.zip
Consider `html+erb` as a valid language for snippets
To highlight ERB snippets, both `erb` and `html+erb` are used as a language passed to the code block. However, only the former will be correctly highlighted.
Diffstat (limited to 'guides/rails_guides')
-rw-r--r--guides/rails_guides/markdown/renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb
index c1968af64a..50a791cda5 100644
--- a/guides/rails_guides/markdown/renderer.rb
+++ b/guides/rails_guides/markdown/renderer.rb
@@ -48,7 +48,7 @@ HTML
case code_type
when 'ruby', 'sql', 'plain'
code_type
- when 'erb'
+ when 'erb', 'html+erb'
'ruby; html-script: true'
when 'html'
'xml' # HTML is understood, but there are .xml rules in the CSS