Merge pull request #532 from rumpuslabs/markdown-not-nil
Markdown engine should not be nil
This commit is contained in:
commit
a8f45b1e17
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module Middleman
|
||||||
if markdown_engine == :redcarpet
|
if markdown_engine == :redcarpet
|
||||||
require "middleman-core/renderers/redcarpet"
|
require "middleman-core/renderers/redcarpet"
|
||||||
::Tilt.prefer(::Middleman::Renderers::RedcarpetTemplate)
|
::Tilt.prefer(::Middleman::Renderers::RedcarpetTemplate)
|
||||||
elsif markdown_engine.nil?
|
elsif not markdown_engine.nil?
|
||||||
# Map symbols to classes
|
# Map symbols to classes
|
||||||
markdown_engine_klass = if markdown_engine.is_a? Symbol
|
markdown_engine_klass = if markdown_engine.is_a? Symbol
|
||||||
engine = markdown_engine.to_s
|
engine = markdown_engine.to_s
|
||||||
|
|
Loading…
Reference in a new issue