mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Testing for RedCloth notextile issue and locking to 4.1.0, which parses the tag correctly
This commit is contained in:
@@ -12,6 +12,7 @@ require 'yaml'
|
||||
|
||||
# 3rd party
|
||||
require 'liquid'
|
||||
gem 'RedCloth', '= 4.1.0'
|
||||
require 'redcloth'
|
||||
|
||||
# internal requires
|
||||
|
||||
@@ -30,9 +30,9 @@ module Jekyll
|
||||
end
|
||||
|
||||
def render_pygments(context, code)
|
||||
if context["content_type"] == :markdown
|
||||
if context["content_type"] == "markdown"
|
||||
return "\n" + Albino.new(code, @lang).to_s(@options) + "\n"
|
||||
elsif context["content_type"] == :textile
|
||||
elsif context["content_type"] == "textile"
|
||||
return "<notextile>" + Albino.new(code, @lang).to_s(@options) + "</notextile>"
|
||||
else
|
||||
return Albino.new(code, @lang).to_s(@options)
|
||||
|
||||
Reference in New Issue
Block a user