Class: Metanorma::Standoc::DeprecatedTermInlineMacro

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

Instance Method Summary collapse

Instance Method Details

#process(parent, _target, attrs) ⇒ Object



49
50
51
52
53
# File 'lib/metanorma/standoc/macros_terms.rb', line 49

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