Class: Metanorma::Standoc::EditorAdmonitionBlock

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

Instance Method Summary collapse

Instance Method Details

#process(parent, reader, attrs) ⇒ Object



46
47
48
49
50
51
# File 'lib/metanorma/standoc/macros_note.rb', line 46

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