From 73e540409ceb8bc18048b6a96a4b815fc303ea28 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 12 Aug 2014 10:55:23 -0500 Subject: Support octopress-hooks and octopress-date-format #1622 --- plugins/include_code.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/include_code.rb') 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 = "
#{title} download
\n" - source += "#{highlight(code, @filetype)}
" - safe_wrap(source) + source += "#{HighlightCode::highlight(code, @filetype)}" + TemplateWrapper::safe_wrap(source) end end end -- cgit v1.2.1