public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
taking out CodeRay support for the minute as there is a module named 
Plugin which clashes with our model class Plugin, and so until we fix that 
we need to ensure the rest of the formatters plugin still works as 
expected
eldiablo (author)
Thu May 22 09:00:52 -0700 2008
commit  cb18148047cc2f10daf39a684329d0469d4a612a
tree    9cf3ebe0f23f09899e0306f993a1af450a72f3a4
parent  5618a71ab6c02cfb3dc965cd0d6f888d0318a4b2
...
4
5
6
7
8
 
 
9
10
11
12
13
14
15
 
 
 
 
 
 
16
17
18
...
22
23
24
25
26
27
 
 
 
28
29
30
 
31
...
4
5
6
 
 
7
8
9
 
 
 
 
 
 
10
11
12
13
14
15
16
17
18
...
22
23
24
 
 
 
25
26
27
28
 
29
30
31
0
@@ -4,15 +4,15 @@ gem "BlueCloth"
0
 require "bluecloth"
0
 gem "rubypants"
0
 require "rubypants"
0
-gem 'coderay'
0
-require 'coderay'
0
+#gem 'coderay'
0
+#require 'coderay'
0
 
0
-def sanitize_code(text)
0
- text.scan(/(<code\:([a-z].+?)>(.+?)<\/code>)/m).each do |match|
0
- text.gsub!(match[0],CodeRay.scan(match[2], match[1].to_sym).div(:css => :class))
0
- end
0
- text
0
-end
0
+#def sanitize_code(text)
0
+# text.scan(/(<code\:([a-z].+?)>(.+?)<\/code>)/m).each do |match|
0
+# text.gsub!(match[0],CodeRay.scan(match[2], match[1].to_sym).div(:css => :class))
0
+# end
0
+# text
0
+#end
0
 
0
 Hooks::Formatters.register_formatter("textile") do |text|
0
   RedCloth.new(text).to_html
0
@@ -22,8 +22,8 @@ Hooks::Formatters.register_formatter("markdown") do |text|
0
   RubyPants.new(BlueCloth.new(text).to_html).to_html
0
 end
0
 
0
-Hooks::Formatters.register_formatter('markdown + coderay') do |text|
0
- sanitize_code(BlueCloth.new(text)).to_html
0
-end
0
+#Hooks::Formatters.register_formatter('markdown + coderay') do |text|
0
+# sanitize_code(BlueCloth.new(text)).to_html
0
+#end
0
 
0
-Hooks::View.register_partial_view "head", 'coderay'
0
\ No newline at end of file
0
+#Hooks::View.register_partial_view "head", 'coderay'
0
\ No newline at end of file

Comments

    No one has commented yet.