diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 12:54:20 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 12:57:29 +0100 |
commit | 0aa18c7d18ac5cf72345b79a223149f8ff9d4ae8 (patch) | |
tree | 1aefe250e5f4c33d4d6dca55216483e8225a2d30 /guides | |
parent | ece28185a83ba42d661f36c65a76ddefb5b9908b (diff) | |
download | rails-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')
-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 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 |