Class: Asciidoctor::SyntaxHighlighter::HtmlPipelineAdapter

Inherits:
Base
  • Object
show all
Defined in:
lib/asciidoctor/syntax_highlighter/html_pipeline.rb

Constant Summary

Constants included from DefaultFactory

DefaultFactory::PROVIDED

Instance Attribute Summary

Attributes included from Asciidoctor::SyntaxHighlighter

#name

Instance Method Summary collapse

Methods included from Asciidoctor::SyntaxHighlighter

#docinfo, #docinfo?, #highlight, #highlight?, #initialize, #write_stylesheet, #write_stylesheet?

Methods included from DefaultFactory

#for, #register

Methods included from Factory

#create, #for, #register

Instance Method Details

#format(node, lang, opts) ⇒ Object



6
7
8
# File 'lib/asciidoctor/syntax_highlighter/html_pipeline.rb', line 6

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