Sha256: 0116ae14e58d1d67c27aef93fc33e5c310eef8742fd18c8e34319f15eb34f69a

Contents?: true

Size: 320 Bytes

Versions: 10

Compression:

Stored size: 320 Bytes

Contents

module ReverseAsciidoctor
  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

10 entries across 10 versions & 2 rubygems

Version Path
reverse_adoc-0.2.8 lib/reverse_asciidoctor/converters/div.rb
reverse_adoc-0.2.7 lib/reverse_asciidoctor/converters/div.rb
reverse_adoc-0.2.6 lib/reverse_asciidoctor/converters/div.rb
reverse_adoc-0.2.5 lib/reverse_asciidoctor/converters/div.rb
reverse_adoc-0.2.4 lib/reverse_asciidoctor/converters/div.rb
reverse_adoc-0.2.3 lib/reverse_asciidoctor/converters/div.rb
reverse_asciidoctor-0.2.2 lib/reverse_asciidoctor/converters/div.rb
reverse_asciidoctor-0.2.1 lib/reverse_asciidoctor/converters/div.rb
reverse_asciidoctor-0.2.0 lib/reverse_asciidoctor/converters/div.rb
reverse_asciidoctor-0.1.0 lib/reverse_asciidoctor/converters/div.rb