2019-09-30 21:07:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Asciidoc
|
|
|
|
module SyntaxHighlighter
|
|
|
|
class HtmlPipelineAdapter < Asciidoctor::SyntaxHighlighter::Base
|
|
|
|
register_for 'gitlab-html-pipeline'
|
|
|
|
|
|
|
|
def format(node, lang, opts)
|
2022-03-02 08:16:31 +05:30
|
|
|
%(<pre #{lang ? %[lang="#{lang}"] : ''}><code>#{node.content}</code></pre>)
|
2019-09-30 21:07:59 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|