Sha256: d409d967027834cb6bc44f08988894be8c07b244d166db4563bc44f1352d1e83

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

module ReverseAdoc
  module Converters
    class Div < Base
      def convert(node, state = {})
        id = node['id']
        anchor = id ? "[[#{id}]]\n" : ""
        "\n#{anchor}" << treat_children(node, state) << "\n"
      end
    end

    register :div,     Div.new
    register :article, Div.new
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reverse_adoc-0.3.7 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.6 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.5 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.4 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.3 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.1 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.3.0 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.2.10 lib/reverse_adoc/converters/div.rb
reverse_adoc-0.2.9 lib/reverse_adoc/converters/div.rb