Sha256: 9075d0903aaa6e88c9409b4be7cf724857dc69d6c7795b6587bf8c4bd7d60991

Contents?: true

Size: 1.1 KB

Versions: 19

Compression:

Stored size: 1.1 KB

Contents

require "asciidoctor/extensions"
module Asciidoctor
  module ISO
    class AltTermInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
      use_dsl
      named :alt
      parse_content_as :text
      using_format :short

      def process(parent, _target, attrs)
        out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert
        %{<admitted>#{out}</admitted>}
      end
    end

    class DeprecatedTermInlineMacro <
      Asciidoctor::Extensions::InlineMacroProcessor
      use_dsl
      named :deprecated
      parse_content_as :text
      using_format :short

      def process(parent, _target, attrs)
        out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert
        %{<deprecates>#{out}</deprecates>}
      end
    end

    class DomainTermInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
      use_dsl
      named :domain
      parse_content_as :text
      using_format :short

      def process(parent, _target, attrs)
        out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert
        %{<domain>#{out}</domain>}
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
asciidoctor-iso-0.9.9 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.7 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.6 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.5 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.3 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.1 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.9.0 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.8.1 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.8.0 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.9 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.8 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.7 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.6 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.5 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.4 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.3 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.2 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.1 lib/asciidoctor/iso/macros.rb
asciidoctor-iso-0.7.0 lib/asciidoctor/iso/macros.rb