Sha256: a57b2ee966cc7b66b91fc12171a6e2ca464c992627ce296da333dc5a6400470e

Contents?: true

Size: 299 Bytes

Versions: 10

Compression:

Stored size: 299 Bytes

Contents

module ReverseAsciidoctor
  module Converters
    class Code < Base
      def convert(node, state = {})
        "`#{node.text}`"
      end
    end

    register :code, Code.new
    register :tt, Code.new
    register :kbd, Code.new
    register :samp, Code.new
    register :var, Code.new
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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