blob: 47eb4cdf579456713344e981cb133d9e5868da6e [file] [log] [blame]
= block_with_caption :top, :class=>'listingblock'
- if style == 'source'
- if highlighter == 'html-pipeline'
pre: code data-lang=source_lang =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'