Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Linuus committed Mar 11, 2013
1 parent b889c39 commit a7102fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/middleman-rouge.rb
@@ -1,8 +1,7 @@
require "middleman-core"
require "redcarpet"
require "middleman-rouge/version"

::Middleman::Extensions.register(:rouge_syntax) do
require "middleman-rouge/extension"
::Middleman::MiddlemanRouge
::Middleman::Rouge
end
4 changes: 3 additions & 1 deletion lib/middleman-rouge/extension.rb
Expand Up @@ -2,8 +2,10 @@ module Middleman
module Rouge
class << self
def registered(app)
require "redcarpet"
require "rouge"
require 'rouge/plugins/redcarpet'
Redcarpet::Render::HTML.send :include, Rouge::Plugins::Redcarpet
Redcarpet::Render::HTML.send :include, ::Rouge::Plugins::Redcarpet
end
alias :included :registered
end
Expand Down

0 comments on commit a7102fb

Please sign in to comment.