Sha256: 79510e33c6a02d71cfa94ee8d375a174e8037119dbb4594282e29a8585a8da97

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

require "redcarpet/render/seeing_is_believing/enricher"
require "redcarpet/render/seeing_is_believing/version"

module Redcarpet
  module Render
    module SeeingIsBelieving
      def block_code(code, language)
        if language == "ruby+"
          enriched_code = Enricher.new.process(code)
          super(enriched_code, "ruby")
        else
          super(code, language)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redcarpet-render-seeing_is_believing-0.1.0 lib/redcarpet/render/seeing_is_believing.rb