Class: Metanorma::Standoc::DomainTermInlineMacro

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



62
63
64
65
66
# File 'lib/metanorma/standoc/macros_terms.rb', line 62

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