diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-20 18:39:00 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-20 18:39:47 -0400 |
commit | 358d02a4a7c9b81e68a1c3778c68b97987b1a360 (patch) | |
tree | d80db2ab836e65bf4552ca36dfcb767c477bfb23 /plugins/code_block.rb | |
parent | 596ec87c37d4f848e478abbbd0690e52eeb37db1 (diff) | |
download | my_new_personal_website-358d02a4a7c9b81e68a1c3778c68b97987b1a360.tar.xz my_new_personal_website-358d02a4a7c9b81e68a1c3778c68b97987b1a360.zip |
centralized pygments aliases into pygments_code.rb. Added alias for .ru (ruby), which sort of fixes #108
Diffstat (limited to '')
-rw-r--r-- | plugins/code_block.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb index 55267a36..d82893ea 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)}</figure></div>" else source += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'<'))}</figure></div>" |