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.4 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.3 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.2 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.1 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.0 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.0.rc.3 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.0.rc.2 lib/asciidoctor/syntax_highlighter/html_pipeline.rb
asciidoctor-2.0.0.rc.1 lib/asciidoctor/syntax_highlighter/html_pipeline.rb