diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 98f14ad1..c289df94 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -84,7 +84,7 @@ end Given /^I have the following (draft|page|post)s?(?: (in|under) "([^"]+)")?:$/ do |status, direction, folder, table| table.hashes.each do |input_hash| title = slug(input_hash['title']) - ext = input_hash['type'] || 'textile' + ext = input_hash['type'] || 'markdown' before, after = location(folder, direction) case status diff --git a/lib/jekyll/configuration.rb b/lib/jekyll/configuration.rb index 7ba9359b..5277405c 100644 --- a/lib/jekyll/configuration.rb +++ b/lib/jekyll/configuration.rb @@ -21,7 +21,6 @@ module Jekyll 'keep_files' => ['.git','.svn'], 'encoding' => 'utf-8', 'markdown_ext' => 'markdown,mkdown,mkdn,mkd,md', - 'textile_ext' => 'textile', 'full_rebuild' => false, # Filtering Content @@ -90,10 +89,6 @@ module Jekyll 'coderay_bold_every' => 10, 'coderay_css' => 'style' } - }, - - 'redcloth' => { - 'hard_breaks' => true } } diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb index ff13a233..d9c84fe8 100644 --- a/lib/jekyll/filters.rb +++ b/lib/jekyll/filters.rb @@ -4,17 +4,6 @@ require 'date' module Jekyll module Filters - # Convert a Textile string into HTML output. - # - # input - The Textile String to convert. - # - # Returns the HTML formatted String. - def textilize(input) - site = @context.registers[:site] - converter = site.find_converter_instance(Jekyll::Converters::Textile) - converter.convert(input) - end - # Convert a Markdown string into HTML output. # # input - The Markdown String to convert. diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 38ece4ca..b6ab7039 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -303,7 +303,7 @@ module Jekyll [posts, pages].flatten.each do |page_or_post| page_or_post.render(layouts, payload) if page_or_post.regenerate? end - rescue Errno::ENOENT => e + rescue Errno::ENOENT # ignore missing layout dir end diff --git a/site/_docs/configuration.md b/site/_docs/configuration.md index 67dd25d4..6d59119d 100644 --- a/site/_docs/configuration.md +++ b/site/_docs/configuration.md @@ -477,7 +477,6 @@ exclude: [] keep_files: [".git", ".svn"] encoding: "utf-8" markdown_ext: "markdown,mkdown,mkdn,mkd,md" -textile_ext: "textile" # Filtering Content show_drafts: null @@ -542,9 +541,6 @@ kramdown: coderay_tab_width: 4 coderay_bold_every: 10 coderay_css: style - -redcloth: - hard_breaks: true {% endhighlight %} ## Markdown Options diff --git a/site/_docs/index.md b/site/_docs/index.md index 633d7534..bbb18087 100644 --- a/site/_docs/index.md +++ b/site/_docs/index.md @@ -14,10 +14,9 @@ development of Jekyll itself. Jekyll is a simple, blog-aware, static site generator. It takes a template directory containing raw text files in various formats, runs it through -[Markdown](http://daringfireball.net/projects/markdown/) (or -[Textile](http://redcloth.org/textile)) and -[Liquid](https://github.com/Shopify/liquid/wiki) -converters, and spits out a complete, ready-to-publish static website suitable +a converter (like [Markdown](http://daringfireball.net/projects/markdown/)) +and our [Liquid](https://github.com/Shopify/liquid/wiki) renderer, and +spits out a complete, ready-to-publish static website suitable for serving with your favorite web server. Jekyll also happens to be the engine behind [GitHub Pages](http://pages.github.com), which means you can use Jekyll to host your project’s page, blog, or website from GitHub’s servers **for diff --git a/site/_docs/permalinks.md b/site/_docs/permalinks.md index 7a47cc68..703a2289 100644 --- a/site/_docs/permalinks.md +++ b/site/_docs/permalinks.md @@ -149,7 +149,7 @@ enough to fix it all! ## Permalink style examples -Given a post named: `/2009-04-29-slap-chop.textile` +Given a post named: `/2009-04-29-slap-chop.md`
- Textilize -Convert a Textile-formatted string into HTML, formatted via RedCloth - |
-
-
- |
-
Markdownify diff --git a/test/helper.rb b/test/helper.rb index 132b1f62..fa546b97 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -8,11 +8,9 @@ end require 'rubygems' require 'test/unit' require 'ostruct' -gem 'RedCloth', '>= 4.2.1' require 'jekyll' -require 'RedCloth' require 'rdiscount' require 'kramdown' require 'redcarpet' diff --git a/test/test_filters.rb b/test/test_filters.rb index 0e18dc02..cb44b65b 100644 --- a/test/test_filters.rb +++ b/test/test_filters.rb @@ -27,10 +27,6 @@ class TestFilters < Test::Unit::TestCase ] end - should "textilize with simple string" do - assert_equal "something really simple ", @filter.textilize("something *really* simple") - end - should "markdownify with simple string" do assert_equal "something really simple \n", @filter.markdownify("something **really** simple") end diff --git a/test/test_post.rb b/test/test_post.rb index 6fdea40d..4a33bbc9 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -746,13 +746,6 @@ class TestPost < Test::Unit::TestCase assert conv.kind_of?(Jekyll::Converters::Identity), "The converter for .Rmd should be the Identity converter." end - should "process .text as textile under alternate configuration" do - @site.config['textile_ext'] = 'textile,text' - post = setup_post '2011-04-12-text-extension.text' - conv = post.converters.first - assert conv.kind_of? Jekyll::Converters::Textile - end - end context "site config with category" do diff --git a/test/test_redcloth.rb b/test/test_redcloth.rb deleted file mode 100644 index 964591be..00000000 --- a/test/test_redcloth.rb +++ /dev/null @@ -1,86 +0,0 @@ -require File.dirname(__FILE__) + '/helper' - -class TestRedCloth < Test::Unit::TestCase - - context "RedCloth default (no explicit config) hard_breaks enabled" do - setup do - @textile = Converters::Textile.new - end - - should "preserve single line breaks in HTML output" do - assert_equal "line1 line1 line1 line1\nline2 ", @textile.convert("p. line1\nline2").strip - end - end - - context "RedCloth w/no_span_caps set to false" do - setup do - config = { - 'redcloth' => { - 'no_span_caps' => false - } - } - @textile = Converters::Textile.new config - end - should "generate span tags around capitalized words" do - assert_equal "NSC ", @textile.convert("NSC").strip - end - end - - context "RedCloth w/no_span_caps set to true" do - setup do - config = { - 'redcloth' => { - 'no_span_caps' => true - } - } - @textile = Converters::Textile.new config - end - - should "not generate span tags around capitalized words" do - assert_equal "NSC ", @textile.convert("NSC").strip - end - end -end diff --git a/test/test_tags.rb b/test/test_tags.rb index c6df3e05..7b6b60f4 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -231,17 +231,6 @@ puts "3..2..1.." CONTENT end - context "using Textile" do - setup do - create_post(@content, {}, Jekyll::Converters::Textile) - end - - # Broken in RedCloth 4.1.9 - should "not textilize highlight block" do - assert_no_match %r{3\.\.2\.\.1\.\."}, @result - end - end - context "using Maruku" do setup do create_post(@content) |