Sha256: c9cdf0defcfffa12a8b8a2e7e549657d844ce7300f8dda7b4a741338974f7d3e

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents

- if @style == '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
    = html_tag('div', { :id => @id, :class => ['quoteblock', 'abstract', role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes)))
      - if title?
        .title=title
      blockquote=content
- elsif @style == 'partintro' && (@level != 0 || @parent.context != :section || @document.doctype != 'book')
  - puts 'asciidoctor: ERROR: partintro block can only be used when doctype is book and it\'s a child of a book part. Excluding block content.'
- else
  - if (has_role? 'aside') or (has_role? 'speaker') or (has_role? 'notes')
    include notes.html.slim
  - else
    = html_tag('div', { :id => @id, :class => ['openblock', (@style != 'open' ? @style : nil), role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes)))
      - if title?
        .title=title
      .content=content

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
asciidoctor-revealjs-5.2.0 templates/open.html.slim
asciidoctor-revealjs-5.1.0 templates/open.html.slim
asciidoctor-revealjs-5.0.1 templates/open.html.slim
asciidoctor-revealjs-5.0.0.rc1 templates/open.html.slim
asciidoctor-revealjs-4.1.0 templates/open.html.slim
asciidoctor-revealjs-4.1.0.rc5 templates/open.html.slim
asciidoctor-revealjs-4.1.0.rc4 templates/open.html.slim
asciidoctor-revealjs-4.1.0.rc3 templates/open.html.slim
asciidoctor-revealjs-4.1.0.rc2 templates/open.html.slim