mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
Use valid css class names when pygments language contains invalid chars, eg html+jango
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user