Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-10-28 01:51:15 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-10-28 01:51:15 +0300
commitc6bcba9ce93e75326bde811b622db53aa36508ef (patch)
tree67fc94efe399056e6636c83a42e5fbb09fbeb1fc /lib/helpers_.rb
parent842318016d6d80d7f2ec600db24410bcdda47603 (diff)
Use Redcarpet instead of Kramdown, get Rouge syntax highlighting working for it.
Diffstat (limited to 'lib/helpers_.rb')
-rw-r--r--lib/helpers_.rb8
1 files changed, 8 insertions, 0 deletions
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