Sha256: 2804a3597e2e3081d088473d3a789ac6318b32b742f7d98aaa486d50d07cf239

Contents?: true

Size: 201 Bytes

Versions: 4

Compression:

Stored size: 201 Bytes

Contents

module Rouge
  module Plugins
    module Redcarpet
      def rouge_formatter(lexer)
        Formatters::HTML.new({css_class: "highlight #{lexer.tag}"}.merge(lexer.options))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kitabu-2.0.3 lib/kitabu/extensions/rouge.rb
kitabu-2.0.2 lib/kitabu/extensions/rouge.rb
kitabu-2.0.1 lib/kitabu/extensions/rouge.rb
kitabu-2.0.0 lib/kitabu/extensions/rouge.rb