Skip to content
Browse files

Fix loading paths in the Redcarpet binary

  • Loading branch information...
1 parent 3abe96a commit af4a7181eca14ccb4d64daf1114f097ab91c8ba6 @vmg committed Jan 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/redcarpet
View
3 bin/redcarpet
@@ -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.
Something went wrong with that request. Please try again.