Class: Asciidoctor::Standoc::ToDoAdmonitionBlock

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

Instance Method Summary collapse

Instance Method Details

#process(parent, reader, attrs) ⇒ Object



157
158
159
160
161
162
# File 'lib/asciidoctor/standoc/macros.rb', line 157

def process(parent, reader, attrs)
  attrs["name"] = "todo"
  attrs["caption"] = "TODO"
  create_block parent, :admonition, reader.lines, attrs,
               content_model: :compound
end