Sha256: af639cbcbcfef793f95316e5a73184b9340df1213b3026ad05a170dae3e0fe4a

Contents?: true

Size: 285 Bytes

Versions: 14

Compression:

Stored size: 285 Bytes

Contents

module ReverseMarkdown
  module Converters
    class Img < Base
      def convert(node, state = {})
        alt   = node['alt']
        src   = node['src']
        title = extract_title(node)
        " ![#{alt}](#{src}#{title})"
      end
    end

    register :img, Img.new
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
reverse_markdown-3.0.0 lib/reverse_markdown/converters/img.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/reverse_markdown-2.1.1/lib/reverse_markdown/converters/img.rb
reverse_markdown-2.1.1 lib/reverse_markdown/converters/img.rb
reverse_markdown-2.0.0 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.4.0 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.3.0 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.2.0 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.1.0 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.5 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.4 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.3 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.2 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.1 lib/reverse_markdown/converters/img.rb
reverse_markdown-1.0.0 lib/reverse_markdown/converters/img.rb