Class: Asciidoctor::Standoc::AutonumberInlineMacro

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

Instance Method Summary collapse

Instance Method Details

#process(parent, target, attrs) ⇒ Object



130
131
132
133
# File 'lib/asciidoctor/standoc/macros.rb', line 130

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