diff -N -r -u5 instiki-0.6.0.orig/app/models/revision.rb instiki-0.6.0/app/models/revision.rb --- instiki-0.6.0.orig/app/models/revision.rb 2004-04-15 23:20:25.000000000 +0200 +++ instiki-0.6.0/app/models/revision.rb 2004-04-16 12:18:07.000000000 +0200 @@ -1,8 +1,9 @@ $: << File.dirname(__FILE__) + "../../libraries" require "redcloth" +require "rdocsupport" require "date" require "author" require "page" require "wiki_words" @@ -64,18 +65,22 @@ end private def textilize(content) - safe_mode_options = [:filter_html, :filter_styles] if Object.const_defined?("OPTIONS") && OPTIONS[:safe_mode] - RedCloth.new(create_auto_links(content.to_s.dup), safe_mode_options || []).to_html + if Object.const_defined?("OPTIONS") && OPTIONS[:markup] == :rdoc + RDocSupport::RDocFormatter.new(content.to_s).to_html + else + safe_mode_options = [:filter_html, :filter_styles] if Object.const_defined?("OPTIONS") && OPTIONS[:safe_mode] + RedCloth.new(create_auto_links(content.to_s.dup), safe_mode_options || []).to_html + end end def create_auto_links(text) urls_linked = text.gsub( /([^=>\3\4\5\6\7' ) # " ruby-mode urls_and_mails_linked = urls_linked.gsub(/([\w\.!#\$%\-+.]+@[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+)/, '\1') end -end \ No newline at end of file +end diff -N -r -u5 instiki-0.6.0.orig/app/views/rdoc_help.rhtml instiki-0.6.0/app/views/rdoc_help.rhtml --- instiki-0.6.0.orig/app/views/rdoc_help.rhtml 1970-01-01 01:00:00.000000000 +0100 +++ instiki-0.6.0/app/views/rdoc_help.rhtml 2004-04-16 12:49:28.000000000 +0200 @@ -0,0 +1,81 @@ + + +
| _your text_ | → | your text |
| *your text* | → | your text |
| * Bulleted list * Second item | → | • Bulleted list • Second item |
| 1. Numbered list 2. Second item | → | 1. Numbered list 2. Second item |
| [[URL linkname]] | → | linkname |
| http://url mailto:email@address.com | → | Auto-linked |
| imageURL | → | Image |
| anchor:anchorname | → | Anchor #anchorname |
| link:#anchorname | → | Link to #anchorname |
| [[rubytalk:12345 link to some posting in + ruby-talk]] | → | + link to + some posting in ruby-talk |
| [[isbn:0201710897 link to a book by ISBN]] + | → | + link to a book by ISBN + |
+ Two or more uppercase words stuck together is a wiki word that links to the page of that name. + If the page doesn't already exist, the question mark trailing the name will link to a blank slate that becomes the page when saved. + A wiki word can be escaped by putting \ in front of it. +
+
+ Wiki words: HomePage, ThreeWordsTogether
+ Not wiki words: IBM, School
+