Sha256: 889df8929e4c1fc8ae824c107f399ba6dd26b3dd3a0affe501be4d405a6316d6

Contents?: true

Size: 685 Bytes

Versions: 47

Compression:

Stored size: 685 Bytes

Contents

module Asciidoctor
  module ITU
    class AddMacro < Asciidoctor::Extensions::InlineMacroProcessor
      use_dsl
      named :add
      parse_content_as :text
      using_format :short

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

    class DelMacro < Asciidoctor::Extensions::InlineMacroProcessor
      use_dsl
      named :del
      parse_content_as :text
      using_format :short

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

Version data entries

47 entries across 44 versions & 2 rubygems

Version Path
metanorma-itu-1.2.16 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.15 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.14 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.13 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.12 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.11 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.10 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.9 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.8 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.7 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.6 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.5 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.4 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.3 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.2 lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.1 lib/asciidoctor/itu/macros.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-itu-1.1.3/lib/asciidoctor/itu/macros.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/asciidoctor/itu/macros.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-itu-1.1.2/lib/asciidoctor/itu/macros.rb
metanorma-itu-1.2.0 lib/asciidoctor/itu/macros.rb