Class: Asciidoctor::Standoc::SymbolRefInlineMacro

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

Instance Method Summary collapse

Instance Method Details

#process(_parent, _target, attrs) ⇒ Object



60
61
62
63
64
# File 'lib/asciidoctor/standoc/macros_terms.rb', line 60

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