Sha256: 22e041d3dbe6dbf4335c2a421abf2789b1e1f1638f2b51fd16c9c2551f292991

Contents?: true

Size: 266 Bytes

Versions: 10

Compression:

Stored size: 266 Bytes

Contents

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

    register :q, Q.new
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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