Sha256: 1d6d6b9ecad27ff220cef28fcb03c083884685d1badc5d4a8ef849781a6be2e3

Contents?: true

Size: 193 Bytes

Versions: 8

Compression:

Stored size: 193 Bytes

Contents

module ReverseMarkdown
  module Converters
    class P < Base
      def convert(node)
        "\n\n" << treat_children(node).strip << "\n\n"
      end
    end

    register :p, P.new
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reverse_markdown-0.8.2 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.8.1 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.8.0 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.7.0 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.6.1 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.6.0 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.5.1 lib/reverse_markdown/converters/p.rb
reverse_markdown-0.5.0 lib/reverse_markdown/converters/p.rb