Redcarpet Parser requires pygments
This commit is contained in:
parent
3c218d2dcd
commit
3feb18bb56
|
@ -4,13 +4,12 @@ module Jekyll
|
|||
class RedcarpetParser
|
||||
def initialize(config)
|
||||
require 'redcarpet'
|
||||
require 'pygments'
|
||||
@config = config
|
||||
@redcarpet_extensions = {}
|
||||
@config['redcarpet']['extensions'].each { |e| @redcarpet_extensions[e.to_sym] = true }
|
||||
|
||||
@renderer ||= Class.new(Redcarpet::Render::HTML) do
|
||||
require 'pygments'
|
||||
|
||||
def block_code(code, lang)
|
||||
lang = lang && lang.split.first || "text"
|
||||
output = add_code_tags(
|
||||
|
|
Loading…
Reference in New Issue