module Jekyll::Utils::Rouge

Public Class Methods

html_formatter(*args) click to toggle source
# File lib/jekyll/utils/rouge.rb, line 9
def self.html_formatter(*args)
  if old_api?
    ::Rouge::Formatters::HTML.new(*args)
  else
    ::Rouge::Formatters::HTMLLegacy.new(*args)
  end
end
old_api?() click to toggle source
# File lib/jekyll/utils/rouge.rb, line 17
def self.old_api?
  ::Rouge.version.to_s < "2"
end