Class: Asciidoctor::SyntaxHighlighter::HtmlPipelineAdapter
- Defined in:
- lib/asciidoctor/syntax_highlighter/html_pipeline.rb
Constant Summary
Constants included from DefaultFactory
Instance Attribute Summary
Attributes included from Asciidoctor::SyntaxHighlighter
Instance Method Summary collapse
Methods included from Asciidoctor::SyntaxHighlighter
#docinfo, #docinfo?, #highlight, #highlight?, #initialize, #write_stylesheet, #write_stylesheet?
Methods included from DefaultFactory
Methods included from Factory
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 |