Class: Metanorma::Standoc::SymbolRefInlineMacro

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



88
89
90
91
92
# File 'lib/metanorma/standoc/macros_terms.rb', line 88

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