Class: Metanorma::Standoc::SpanInlineMacro

Inherits:
Asciidoctor::Extensions::InlineMacroProcessor
  • Object
show all
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