d598e4fd93
Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
19 lines
462 B
Ruby
19 lines
462 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module Renderer
|
|
module CommonMark
|
|
class HTML < CommonMarker::HtmlRenderer
|
|
def code_block(node)
|
|
block do
|
|
out("<pre#{sourcepos(node)}><code")
|
|
out(' lang="', node.fence_info, '"') if node.fence_info.present?
|
|
out('>')
|
|
out(escape_html(node.string_content))
|
|
out('</code></pre>')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|