Sha256: 74a5ebd3a71c11bf8ed158690d7295ff3ca9b275842469550dee27b96f494b69

Contents?: true

Size: 276 Bytes

Versions: 28

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true
module Asciidoctor
class SyntaxHighlighter::HtmlPipelineAdapter < SyntaxHighlighter::Base
  register_for 'html-pipeline'

  def format node, lang, opts
    %(<pre#{lang ? %[ lang="#{lang}"] : ''}><code>#{node.content}</code></pre>)
  end
end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
asciidoctor-2.0.22 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.21 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.20 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.19 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.18 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.17 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.16 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.15 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.14 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.13 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.12 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.11 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/asciidoctor-2.0.10/lib/asciidoctor/syntax_highlighter/html_pipeline.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/asciidoctor-2.0.10/lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.10 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.9 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.8 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.7 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.6 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.5 lib/asciidoctor/syntax_highlighter/html_pipeline.rb