Support missing kramdown coderay option
This commit is contained in:
parent
955f913f04
commit
5efadd6674
|
@ -14,7 +14,7 @@ module Jekyll
|
||||||
def convert(content)
|
def convert(content)
|
||||||
# Check for use of coderay
|
# Check for use of coderay
|
||||||
if @config['kramdown']['use_coderay']
|
if @config['kramdown']['use_coderay']
|
||||||
%w[wrap line_numbers line_numbers_start tab_width bold_every css].each do |opt|
|
%w[wrap line_numbers line_numbers_start tab_width bold_every css default_lang].each do |opt|
|
||||||
key = "coderay_#{opt}"
|
key = "coderay_#{opt}"
|
||||||
@config['kramdown'][key.to_sym] = @config['kramdown']['coderay'][key] unless @config['kramdown'].has_key? key
|
@config['kramdown'][key.to_sym] = @config['kramdown']['coderay'][key] unless @config['kramdown'].has_key? key
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue