aboutsummaryrefslogtreecommitdiff
path: root/plugins/code_block.rb
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/code_block.rb')
-rw-r--r--plugins/code_block.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index 86708285..ff242aab 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -79,6 +79,7 @@ module Jekyll
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 += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'&lt;') + "</code></pre></figure></div>"