Permalink
Browse files

Fix loading paths in the Redcarpet binary

  • Loading branch information...
vmg committed Jan 17, 2012
1 parent 3abe96a commit af4a7181eca14ccb4d64daf1114f097ab91c8ba6
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/redcarpet
View
@@ -9,5 +9,8 @@ if ARGV.include?('--help')
exit 0
end
+root = File.expand_path('../../', __FILE__)
+$:.unshift File.expand_path('lib', root)
+
require 'redcarpet'
STDOUT.write(Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(ARGF.read))

0 comments on commit af4a718

Please sign in to comment.