diff --git a/middleman-core/lib/middleman-core/renderers/markdown.rb b/middleman-core/lib/middleman-core/renderers/markdown.rb
index <HASH>..<HASH> 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
Markdown engine should not be nil