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