Sha256: ad6d1529bd758d3e1a2df311826c510c6580377563cd79a5ee6adf0a908510e2
Contents?: true
Size: 320 Bytes
Versions: 3
Compression:
Stored size: 320 Bytes
Contents
# frozen_string_literal: true module Rouge module Plugins module Redcarpet def rouge_formatter(lexer) options = lexer.respond_to?(:options) ? lexer.options : {} Formatters::HTMLLegacy.new( {css_class: "highlight #{lexer.tag}"}.merge(options) ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kitabu-3.0.2 | lib/kitabu/extensions/rouge.rb |
kitabu-3.0.1 | lib/kitabu/extensions/rouge.rb |
kitabu-3.0.0 | lib/kitabu/extensions/rouge.rb |