Merge pull request #532 from rumpuslabs/markdown-not-nil

Markdown engine should not be nil
This commit is contained in:
Thomas Reynolds 2012-07-15 12:13:46 -07:00
commit a8f45b1e17

View file

@ -29,7 +29,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