Use valid css class names when pygments language contains invalid chars, eg html+jango
This commit is contained in:
parent
24aabbe05f
commit
a38902b5a7
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue