Class: Metanorma::Standoc::TermRefInlineMacro

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



75
76
77
78
79
# File 'lib/metanorma/standoc/macros_terms.rb', line 75

def process(_parent, _target, attrs)
  termref = attrs["termxref"] || attrs["name"]
  "<concept type='term'><termxref>#{attrs['name']}</termxref>" \
    "<renderterm>#{termref}</renderterm><xrefrender/></concept>"
end