From aa35b8f0f0cbdc58f0c139131d091c5e7d1c0be4 Mon Sep 17 00:00:00 2001 From: Tim Bates Date: Sun, 15 Jul 2012 23:02:04 +0930 Subject: [PATCH] Markdown engine should not be nil --- middleman-core/lib/middleman-core/renderers/markdown.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/renderers/markdown.rb b/middleman-core/lib/middleman-core/renderers/markdown.rb index 79df7d9d..f017f1f0 100644 --- a/middleman-core/lib/middleman-core/renderers/markdown.rb +++ b/middleman-core/lib/middleman-core/renderers/markdown.rb @@ -30,7 +30,7 @@ module Middleman if markdown_engine == :redcarpet require "middleman-core/renderers/redcarpet" ::Tilt.prefer(::Middleman::Renderers::RedcarpetTemplate) - elsif markdown_engine.nil? + elsif not markdown_engine.nil? # Map symbols to classes markdown_engine_klass = if markdown_engine.is_a? Symbol engine = markdown_engine.to_s @@ -54,4 +54,4 @@ module Middleman end end -end \ No newline at end of file +end