Class: Metanorma::Standoc::AltTermInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::AltTermInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_terms.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, _target, attrs) ⇒ Object
23 24 25 26 27 |
# File 'lib/metanorma/standoc/macros_terms.rb', line 23 def process(parent, _target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert %{<admitted><expression><name>#{out}</name></expression></admitted>} end |