mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Redcarpet Parser requires pygments
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user