Testing for RedCloth notextile issue and locking to 4.1.0, which parses the tag correctly

This commit is contained in:
Nick Quaranto
2009-04-29 08:35:27 -04:00
parent 4bcece18ae
commit 26f9ad3d98
4 changed files with 32 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ require 'yaml'
# 3rd party
require 'liquid'
gem 'RedCloth', '= 4.1.0'
require 'redcloth'
# internal requires

View File

@@ -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)