Skip to content

Commit

Permalink
Fixing that the rdiscount require rescue didn't catch.
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDanger committed Dec 8, 2008
1 parent f5c727f commit 767d99b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/jekyll.rb
Expand Up @@ -12,7 +12,11 @@
# 3rd party
require 'liquid'
require 'redcloth'
require 'rdiscount' rescue puts "The rdiscount gem is required for markdown support!"
begin
require 'rdiscount'
rescue LoadError
puts "The rdiscount gem is required for markdown support!"
end
require 'classifier'
require 'directory_watcher'

Expand All @@ -31,4 +35,4 @@ module Jekyll
def self.process(source, dest)
Jekyll::Site.new(source, dest).process
end
end
end

0 comments on commit 767d99b

Please sign in to comment.