diff --git a/plugins/code_block.rb b/plugins/code_block.rb index 55267a3..d82893e 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -77,9 +77,6 @@ module Jekyll source += @caption if @caption source = context['pygments_prefix'] + source if context['pygments_prefix'] if @filetype - @filetype = 'objc' if @filetype == 'm' - @filetype = 'perl' if @filetype == 'pl' - @filetype = 'yaml' if @filetype == 'yml' source += " #{highlight(code, @filetype)}" else source += "#{tableize_code(code.lstrip.rstrip.gsub(/,'<'))}" diff --git a/plugins/include_code.rb b/plugins/include_code.rb index e064fe2..d910c3e 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -53,9 +53,6 @@ module Jekyll Dir.chdir(code_path) do code = file.read @filetype = file.extname.sub('.','') - @filetype = 'objc' if @filetype == 'm' - @filetype = 'perl' if @filetype == 'pl' - @filetype = 'yaml' if @filetype == 'yml' title = @title ? "#{@title} (#{file.basename})" : file.basename url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" source = "