Sha256: de8e948ec1b58ce59974d43d3dd45b296dc995a870112337ce98c39c7d5efb55

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

- _has_title = title?
- _role = role
- content_for :pre
  - if style == 'source' && (_lang = local_attr :language)
    / NOTE class attribute required for highlight.js and prettify
    / QUESTION should we add a "highlight" class to pre?
    pre.source id=(id unless _has_title) class=_role : code data-lang=_lang class="language-#{_lang} prettyprint" =content
  - else
    / QUESTION should we add a class to pre?
    pre id=(id unless _has_title) class=_role : code =content
- if _has_title
  figure.listing id=id class=_role
    figcaption=title
    - yield_content :pre
- else
  - yield_content :pre

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-bespoke-1.0.0.alpha.2 templates/slim/listing.html.slim