diff options
Diffstat (limited to 'plugins/code_block.rb')
-rw-r--r-- | plugins/code_block.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb index 4264d197..4cf2817b 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -73,6 +73,8 @@ module Jekyll source = "<div><figure role=code>" source += @caption if @caption if @filetype + @filetype = 'objc' if @filetype == 'm' + @filetype = 'perl' if @filetype == 'pl' source += "{% highlight #{@filetype} %}\n" + code + "\n{% endhighlight %}</figure></div>" else source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'<') + "</code></pre></figure></div>" |