Class: Asciidoctor::Standoc::TermRefInlineMacro
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- Asciidoctor::Standoc::TermRefInlineMacro
- Defined in:
- lib/asciidoctor/standoc/macros_terms.rb
Instance Method Summary collapse
Instance Method Details
#process(_parent, _target, attrs) ⇒ Object
47 48 49 50 51 |
# File 'lib/asciidoctor/standoc/macros_terms.rb', line 47 def process(_parent, _target, attrs) termref = attrs["termxref"] || attrs["name"] "<concept type='term'><termxref>#{attrs['name']}</termxref>"\ "<renderterm>#{termref}</renderterm><xrefrender/></concept>" end |