From a38902b5a737a497906741d2f026db7874a142d0 Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Tue, 23 Apr 2013 06:48:31 +1000 Subject: [PATCH] Use valid css class names when pygments language contains invalid chars, eg html+jango --- lib/jekyll/tags/highlight.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/tags/highlight.rb b/lib/jekyll/tags/highlight.rb index c84ea111..bfba8912 100644 --- a/lib/jekyll/tags/highlight.rb +++ b/lib/jekyll/tags/highlight.rb @@ -53,7 +53,7 @@ eos output = add_code_tags( Pygments.highlight(code, :lexer => @lang, :options => @options), - @lang + @lang.gsub("+", "-") ) output = context["pygments_prefix"] + output if context["pygments_prefix"]