lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.318 vs lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.321

- old
+ new

@@ -3,9 +3,15 @@ URI_PATTERN = %r{\A(lalala|youtube|vimeo|asset)[:][/]{2}.+\Z} def initialize(options) @options = options.dup @link_schemes = (options[:link_schemes] || {}).dup + + # default link schemes + unless @link_schemes["asset"] + @link_schemes["asset"] = Lalala::Markdown::Handlers::Asset.new + end + super(options) end def autolink(link, link_type) if link.blank?