Sha256: ece77095e412a4ae5fb82a06d189a45bcf8d56d9e811d8e2eced8bb692d1697b

Contents?: true

Size: 343 Bytes

Versions: 9

Compression:

Stored size: 343 Bytes

Contents

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

    register :aside, Aside.new
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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