Sha256: a2942a94af9cd0eb2936e66bd0babe757e81f16cf4cb11182f36b021c5226435

Contents?: true

Size: 201 Bytes

Versions: 1

Compression:

Stored size: 201 Bytes

Contents

require 'redcarpet'
require 'pygments'

module ActiveCopy
  class Renderer < Redcarpet::Render::HTML
    def block_code(text, language)
      Pygments.highlight text, lexer: language
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_copy-1.0.0 lib/active_copy/renderer.rb