Class: Metanorma::Standoc::FormLabelMacro

Inherits:
Asciidoctor::Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/metanorma/standoc/macros_form.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, target, attr) ⇒ Object



19
20
21
22
# File 'lib/metanorma/standoc/macros_form.rb', line 19

def process(parent, target, attr)
  out = Asciidoctor::Inline.new(parent, :quoted, attr["text"]).convert
  %{<label for="#{target}">#{out}</label>}
end