aboutsummaryrefslogtreecommitdiff
path: root/plugins/include_code.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2014-08-12 10:55:23 -0500
committerBrandon Mathis <brandon@imathis.com>2014-08-12 10:56:45 -0500
commit73e540409ceb8bc18048b6a96a4b815fc303ea28 (patch)
treeca3ae0e5cca03c7f0c8012a3ed4fbbf36b11ab9d /plugins/include_code.rb
parent18784a4cb04ed658268a5a4ba9bdf399e0c898ff (diff)
downloadmy_new_personal_website-73e540409ceb8bc18048b6a96a4b815fc303ea28.tar.xz
my_new_personal_website-73e540409ceb8bc18048b6a96a4b815fc303ea28.zip
Support octopress-hooks and octopress-date-format #1622
Diffstat (limited to 'plugins/include_code.rb')
-rw-r--r--plugins/include_code.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/include_code.rb b/plugins/include_code.rb
index 41f30337..a61d06cf 100644
--- a/plugins/include_code.rb
+++ b/plugins/include_code.rb
@@ -27,8 +27,6 @@ require 'pathname'
module Jekyll
class IncludeCodeTag < Liquid::Tag
- include HighlightCode
- include TemplateWrapper
def initialize(tag_name, markup, tokens)
@title = nil
@file = nil
@@ -62,8 +60,8 @@ module Jekyll
title = @title ? "#{@title} (#{file.basename})" : file.basename
url = "/#{code_dir}/#{@file}"
source = "<figure class='code'><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
- source += "#{highlight(code, @filetype)}</figure>"
- safe_wrap(source)
+ source += "#{HighlightCode::highlight(code, @filetype)}</figure>"
+ TemplateWrapper::safe_wrap(source)
end
end
end