Class: Asciidoctor::Standoc::FormLabelMacro

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

Instance Method Summary collapse

Instance Method Details

#process(parent, target, attr) ⇒ Object



19
20
21
22
# File 'lib/asciidoctor/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