* Rename and reorganize post fetcher to fix autoloading, also let it use Faradays default connection so we get nice redirects * Add initializer to load libs at a central place * added lib dir to autoload_once paths to increase thread safety * Moved lib/exceptions.rb to lib/diaspora/ to conform namespacing
13 lines
304 B
Ruby
13 lines
304 B
Ruby
module Diaspora
|
|
module Markdownify
|
|
class HTML < Redcarpet::Render::HTML
|
|
include ActionView::Helpers::TextHelper
|
|
include ActionView::Helpers::TagHelper
|
|
|
|
def autolink(link, type)
|
|
auto_link(link, :link => :urls, :html => { :target => "_blank" })
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|