Class: Metanorma::Standoc::SpanInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::SpanInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_inline.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attrs) ⇒ Object
144 145 146 147 |
# File 'lib/metanorma/standoc/macros_inline.rb', line 144 def process(parent, target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert %{<span class="#{target}">#{out}</span>} end |