diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-10-28 01:51:15 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-10-28 01:51:15 +0300 |
commit | c6bcba9ce93e75326bde811b622db53aa36508ef (patch) | |
tree | 67fc94efe399056e6636c83a42e5fbb09fbeb1fc /lib | |
parent | 842318016d6d80d7f2ec600db24410bcdda47603 (diff) |
Use Redcarpet instead of Kramdown, get Rouge syntax highlighting working for it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers_.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/helpers_.rb b/lib/helpers_.rb index 8b95e3ef7..270ec69aa 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 |