aboutsummaryrefslogtreecommitdiff
path: root/plugins/include_code.rb
diff options
context:
space:
mode:
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