default to redcarpet for markdown. closes #196

This commit is contained in:
Thomas Reynolds 2011-12-11 16:02:40 -08:00
parent f2221cd9a0
commit 6f4c1b816a
5 changed files with 7 additions and 18 deletions

View file

@ -12,6 +12,7 @@
* Unified callback solution
* Removed Slim and Maruku from base install. Will need to be installed and required by the user (in - config.rb)
* Activate mobile html5boilerplate template
* Update to Redcarpet for Markdown (breaks Haml :markdown filter)
2.0.14
====

View file

@ -1,6 +1 @@
%h1 Welcome
:markdown
## H2
Paragraph
h1 Welcome

View file

@ -1,9 +1,9 @@
%h1 Welcome
h1 Welcome
= image_tag "Chrome_Logo.svg"
= image_tag "cfb_tomb-perennial-energy.svgz"
:markdown
markdown:
## H2
Paragraph

View file

@ -1,15 +1,8 @@
module Middleman::Renderers::Markdown
class << self
def registered(app)
app.set :markdown_engine, nil
# TODO: Switch to Redcarpet once Haml 3.2.0 ships
begin
require "rdiscount"
app.set :markdown_engine, :rdiscount
rescue LoadError
end
require "redcarpet"
app.set :markdown_engine, :redcarpet
app.set :markdown_engine_prefix, ::Tilt
app.after_configuration do

View file

@ -36,13 +36,13 @@ Gem::Specification.new do |s|
s.add_dependency("sprockets", ["~> 2.1.2"])
s.add_dependency("sprockets-sass", ["~> 0.5.0"])
s.add_dependency("guard", ["~> 0.8.8"])
s.add_dependency("redcarpet", ["~> 2.0.0"])
# OSX
s.add_dependency("rb-fsevent")
# Development and test
s.add_development_dependency("slim")
s.add_development_dependency("rdiscount")
s.add_development_dependency("sinatra")
s.add_development_dependency("coffee-filter", ["~> 0.1.1"])
s.add_development_dependency("liquid", ["~> 2.2.0"])