Class: Asciidoctor::Standoc::AutonumberInlineMacro
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- Asciidoctor::Standoc::AutonumberInlineMacro
- Defined in:
- lib/asciidoctor/standoc/macros.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attrs) ⇒ Object
154 155 156 157 |
# File 'lib/asciidoctor/standoc/macros.rb', line 154 def process(parent, target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert %{<autonumber type=#{target}>#{out}</autonumber>} end |