Class: Metanorma::Standoc::AddMacro

Inherits:
Asciidoctor::Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/metanorma/standoc/macros_inline.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, _target, attrs) ⇒ Object



95
96
97
98
# File 'lib/metanorma/standoc/macros_inline.rb', line 95

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