Sha256: ef3fbd2043b9bf47468f911aa06c8d320f1e7838fe06ab8a39301ba9d896c006

Contents?: true

Size: 263 Bytes

Versions: 9

Compression:

Stored size: 263 Bytes

Contents

module ReverseAdoc
  module Converters
    class Sup < Base
      def convert(node, state = {})
        content = treat_children(node, state)
        "#{content[/^\s*/]}^#{content.strip}^#{content[/\s*$/]}"
      end
    end

    register :sup, Sup.new
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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