Merge pull request #413 from bhollis/maruku

Switch back to maruku
This commit is contained in:
Thomas Reynolds 2012-05-02 15:10:00 -07:00
commit 7fb16a4b1b
3 changed files with 16 additions and 12 deletions

View file

@ -9,19 +9,23 @@ Feature: Markdown support
Scenario: Redcarpet 2 extensions
Given the Server is running at "markdown-app"
When I go to "/smarty_pants.html"
Then I should see "“"
Then I should see "“"
When I go to "/no_intra_emphasis.html"
Then I should not see "<em>"
When I go to "/tables.html"
Then I should see "<table>"
When I go to "/fenced_code_blocks.html"
Then I should see "<code>"
When I go to "/autolink.html"
Then I should see "<a href"
When I go to "/strikethrough.html"
Then I should see "<del>"
# Maruku doesn't support fenced code blocks :-(
#When I go to "/fenced_code_blocks.html"
#Then I should see "<code>"
# or autolink
#When I go to "/autolink.html"
#Then I should see "<a href"
# or del
#When I go to "/strikethrough.html"
#Then I should see "<del>"
When I go to "/space_after_headers.html"
Then I should not see "<h1>"
When I go to "/superscript.html"
Then I should see "<sup>"
# or superscript
#When I go to "/superscript.html"
#Then I should see "<sup>"

View file

@ -11,7 +11,7 @@ module Middleman
def registered(app)
# Set our preference for a markdown engine
# TODO: Find a JRuby-compatible version
app.set :markdown_engine, :redcarpet
app.set :markdown_engine, :maruku
app.set :markdown_engine_prefix, ::Tilt
app.before_configuration do
@ -54,4 +54,4 @@ module Middleman
end
end
end
end
end

View file

@ -26,6 +26,6 @@ Gem::Specification.new do |s|
s.add_dependency("execjs", ["~> 1.2"])
s.add_dependency("sprockets", ["~> 2.1"])
s.add_dependency("sprockets-sass", ["~> 0.8.0"])
s.add_dependency("redcarpet", ["~> 2.1.0"])
s.add_dependency("maruku", ["~> 0.6.0"])
end