Sha256: d9b28033c16ccc6cb2b9ff834d0b7c76f88eeaa99aeb2c03996e3e05ddacec9c

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

module MadChatter
  class MarkdownRenderer < Redcarpet::Render::HTML
    
    def link(link, title, alt_text)
      "<a target=\"_blank\" href=\"#{link}\">#{alt_text}</a>"
    end
    
    def autolink(link, link_type)
      "<a target=\"_blank\" href=\"#{link}\">#{link}</a>"
    end
    
    def header(text, header_level)
      '#' + text
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mad_chatter-0.3.1 lib/mad_chatter/markdown_renderer.rb
mad_chatter-0.3.0 lib/mad_chatter/markdown_renderer.rb