From c6bcba9ce93e75326bde811b622db53aa36508ef Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Thu, 27 Oct 2016 16:51:15 -0600 Subject: Use Redcarpet instead of Kramdown, get Rouge syntax highlighting working for it. --- lib/helpers_.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/helpers_.rb') diff --git a/lib/helpers_.rb b/lib/helpers_.rb index 8b95e3ef..270ec69a 100644 --- a/lib/helpers_.rb +++ b/lib/helpers_.rb @@ -1,3 +1,11 @@ include Nanoc::Helpers::LinkTo include Nanoc::Helpers::XMLSitemap include Nanoc::Helpers::ChildParentBetter + +require 'redcarpet' +require 'rouge' +require 'rouge/plugins/redcarpet' + +class HTML < Redcarpet::Render::HTML + include Rouge::Plugins::Redcarpet +end -- cgit v1.2.3