public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
pull in latest changes from filtered_column plugin

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2917 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Thu Jun 21 06:58:57 -0700 2007
commit  e6baf1c36f0aedc631e5608a781f78f18620350e
tree    6f50f479717ac311ac95fe33654ba5bb0e2ee207
parent  1ecc83ea94e95a4b39969ae1e40a4e749da3c136
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ module FilteredColumn
0
       set_name "Markdown with Smarty Pants"
0
       def self.filter(text)
0
         if Object.const_defined?(:BlueCloth) && Object.const_defined?(:RubyPants)
0
- BlueCloth.new(RubyPants.new(text.gsub(%r{</?notextile>}, '')).to_html).to_html
0
+ RubyPants.new(BlueCloth.new(text.gsub(%r{</?notextile>}, '')).to_html).to_html
0
         else
0
           text
0
         end
...
3
4
5
6
 
 
 
7
8
9
...
3
4
5
 
6
7
8
9
10
11
0
@@ -3,7 +3,9 @@ require File.join(File.dirname(__FILE__), 'abstract_unit')
0
 class FilteredColumnTest < Test::Unit::TestCase
0
   {
0
     :textile => { :input => '*foo*', :output => '<p><strong>foo</strong></p>' },
0
- :markdown => { :input => "# bar\n\nfoo", :output => "<h1>bar</h1>\n\n<p>foo</p>" }
0
+ :markdown => { :input => "# bar\n\nfoo", :output => "<h1>bar</h1>\n\n<p>foo</p>" },
0
+ :smartypants => { :input => "\"abc\" `<def ghi=\"jkl\">`\n\n <mno pqr=\"stu\">...</mno>",
0
+ :output => "<p>&#8220;abc&#8221; <code>&lt;def ghi=\"jkl\"&gt;</code></p>\n\n<pre><code>&lt;mno pqr=\"stu\"&gt;...&lt;/mno&gt;\n</code></pre>" },
0
   }.each do |filter_name, values|
0
     define_method "test_should_filter_with_#{filter_name}" do
0
       assert_equal values[:output], FilteredColumn::Processor.new("#{filter_name}_filter", values[:input]).filter

Comments

    No one has commented yet.