Sha256: abeb474053b5530055dc9f56b2d5155c150549e0f3b6c2b3f664196d8329baf8

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

= block_with_caption :top, :class=>'listingblock'
  - if style == 'source'
    - if highlighter == 'html-pipeline'
      pre lang=source_lang
        code =content
    - else
      - unless highlighter == 'CodeRay'
        - code_class = "language-#{source_lang}" if source_lang
      pre class=[highlighter, 'highlight', ('linenums' if attr? :linenums), nowrap?]
        code class=code_class data-lang=source_lang =content
  - else
    pre class=nowrap? =content
  / Note: This is a hack to embed callout list into the listing element.
  / See asciidoctor/html5s/attached_colist_treeprocessor.rb.
  - if callout_list
    = converter.convert callout_list, 'colist'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-html5s-0.1.0.beta.1 data/templates/listing.html.slim