Class: Asciidoctor::Iso::TermRefInlineMacro
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- Asciidoctor::Iso::TermRefInlineMacro
- Defined in:
- lib/asciidoctor/iso/macros.rb
Overview
Macro to transform ‘term` into em, termxref xml
Instance Method Summary collapse
Instance Method Details
#process(_parent, _target, attrs) ⇒ Object
15 16 17 18 |
# File 'lib/asciidoctor/iso/macros.rb', line 15 def process(_parent, _target, attrs) termref = attrs['termxref'] || attrs['name'] "<em>#{attrs['name']}</em> (<termxref>#{termref}</termxref>)" end |