Class: Metanorma::Standoc::AutonumberInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::AutonumberInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_inline.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attrs) ⇒ Object
55 56 57 58 |
# File 'lib/metanorma/standoc/macros_inline.rb', line 55 def process(parent, target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert %{<autonumber type='#{target}'>#{out}</autonumber>} end |