Sha256: 608e417c225d7c24545f0e5225237a001d933d7b64457a3934187746b598b2ca
Contents?: true
Size: 841 Bytes
Versions: 21
Compression:
Stored size: 841 Bytes
Contents
- case attr 'style' - when 'abstract' - if @parent == @document && @document.doctype == 'book' - puts 'asciidoctor: WARNING: abstract block cannot be used in a document without a title when doctype is book. Excluding block content.' - else %abstract - if title? %title=title - if blocks? =content - else %simpara=content - when 'partintro' - unless @document.doctype == 'book' && @parent.context == :section && @level == 0 - puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and its a child of a part section. Excluding block content.' - else %partintro{:id=>@id, :role=>(attr :role), :xreflabel=>(attr :reftext)} - if title? %title=title - if blocks? =content - else %simpara=content - else =content
Version data entries
21 entries across 21 versions & 1 rubygems