Sha256: d3341f1d22e0b6a14e4ba3914dd756e51d66936a53b889f4bcc44522dd80f839
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
- if title? .title=captioned_title - nowrap = !(@document.attr? :prewrap) || (option? 'nowrap') / implicit listing blocks and source blocks are rendered as code / explicit listing blocks stay listing - if @style == 'source' || (@style == 'listing' && attributes[1] != 'listing') - language = attr :language - code_class = language ? [language, "language-#{language}"] : nil - pre_class = ['highlight'] - pre_lang = nil - code_noescape = false - case document.attr 'source-highlighter' - when 'coderay' - pre_class = ['CodeRay'] - when 'pygments' - pre_class = ['pygments','highlight'] - when 'prettify' - pre_class = ['prettyprint'] - pre_class << 'linenums' if attr? :linenums - pre_class << language if language - pre_class << "language-#{language}" if language - code_class = nil - when 'html-pipeline' - pre_lang = language - pre_class = code_class = nil - nowrap = false - when 'highlightjs', 'highlight.js' - code_noescape=true - pre_class << 'nowrap' if nowrap - pre_class << 'listingblock' - pre_class << role if role pre class=pre_class lang=pre_lang id=@id code data-noescape=code_noescape class=code_class =content - else pre class=(nowrap ? 'nowrap' : nil) =content
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-revealjs-2.0.1 | templates/listing.html.slim |
asciidoctor-revealjs-2.0.0 | templates/listing.html.slim |