Use valid css class names when pygments language contains invalid chars, eg html+jango

This commit is contained in:
Stephen McDonald 2013-04-23 06:48:31 +10:00
parent 24aabbe05f
commit a38902b5a7
1 changed files with 1 additions and 1 deletions

View File

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