mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
maruku is abandonware, default to rdiscount
This commit is contained in:
parent
46ddfe747f
commit
dd0836b9d5
4 changed files with 5 additions and 10 deletions
|
@ -1,4 +1,3 @@
|
|||
require "maruku"
|
||||
require "slim"
|
||||
require "liquid"
|
||||
require "coffee-filter"
|
||||
|
|
|
@ -251,7 +251,7 @@ class Middleman::Base
|
|||
self.class.superclass.defaults.each { |k,v| set(k,v) }
|
||||
|
||||
# Evaluate a passed block if given
|
||||
yield if block_given?
|
||||
instance_exec(&block) if block_given?
|
||||
|
||||
# Build expanded source path once paths have been parsed
|
||||
set :source_dir, File.join(root, source)
|
||||
|
|
|
@ -3,16 +3,12 @@ module Middleman::Renderers::Markdown
|
|||
def registered(app)
|
||||
app.set :markdown_engine, nil
|
||||
|
||||
begin
|
||||
require "maruku"
|
||||
app.set :markdown_engine, :maruku
|
||||
rescue LoadError
|
||||
# TODO: Switch to Redcarpet once Haml 3.2.0 ships
|
||||
begin
|
||||
require "rdiscount"
|
||||
app.set :markdown_engine, :rdiscount
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
app.set :markdown_engine_prefix, ::Tilt
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|||
|
||||
# Development and test
|
||||
s.add_development_dependency("slim")
|
||||
s.add_development_dependency("maruku")
|
||||
s.add_development_dependency("rdiscount")
|
||||
s.add_development_dependency("coffee-filter", ["~> 0.1.1"])
|
||||
s.add_development_dependency("liquid", ["~> 2.2.0"])
|
||||
s.add_development_dependency("cucumber", ["~> 1.1.0"])
|
||||
|
|
Loading…
Reference in a new issue