mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Protect against nil @lang before fixing for css class names.
This commit is contained in:
@@ -53,7 +53,7 @@ eos
|
||||
|
||||
output = add_code_tags(
|
||||
Pygments.highlight(code, :lexer => @lang, :options => @options),
|
||||
@lang.gsub("+", "-")
|
||||
@lang.to_s.gsub("+", "-")
|
||||
)
|
||||
|
||||
output = context["pygments_prefix"] + output if context["pygments_prefix"]
|
||||
|
||||
Reference in New Issue
Block a user