]> sipb.mit.edu Git - ikiwiki.git/commitdiff
new txt plugin, was previously contrib/plaintext
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:48:45 +0000 (20:48 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 25 Jun 2008 00:48:45 +0000 (20:48 -0400)
debian/changelog
debian/copyright
doc/plugins/contrib/plaintext.mdwn [deleted file]
doc/plugins/plaintext/.discussion.mdwn.swp [new file with mode: 0644]
doc/plugins/plaintext/discussion.mdwn [moved from doc/plugins/contrib/plaintext/discussion.mdwn with 100% similarity]
doc/plugins/txt.mdwn [new file with mode: 0644]

index 251761633530e1e98adc59a617f3bd75212d4d7d..d92d5fa1ac74df8853f48007d73a5338855297a1 100644 (file)
@@ -19,6 +19,7 @@ ikiwiki (2.51) UNRELEASED; urgency=low
   * aggregate: Add template parameter.
   * Add support for the universal edit button <http://universaleditbutton.org/>
     (To get this on all pages of an exiting wiki, rebuild the wiki.)
+  * txt: New plugin, contributed by Gabriel McManus.
 
  -- Joey Hess <joeyh@debian.org>  Sun, 15 Jun 2008 15:03:33 -0400
 
index 2a7bbedf545e313fe8a5b739e69523c92f6af04f..d25e0861ac759779bd78126408ca79d1770a953d 100644 (file)
@@ -96,6 +96,10 @@ Files: creole.pm
 Copyright: Copyright (C) 2008 Bernd Zeimetz <bernd@bzed.de>
 License: GPL-2+
 
+Files: txt.pm
+Copyright: Copyright (C) 2008 Gabriel McManus <gmcmanus@gmail.com>
+License: GPL-2+
+
 Files: doc/logo/*
 Copyright: © 2006 Recai Oktaş <roktas@debian.org>
 License: GPL-2+
diff --git a/doc/plugins/contrib/plaintext.mdwn b/doc/plugins/contrib/plaintext.mdwn
deleted file mode 100644 (file)
index 0350bc3..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[[template id=plugin name=plaintext author="[[JeremieKoenig]]"]]
-[[tag type/format]]
-
-I was surprised that no plugin seems to be available to render plaintext pages;
-as I need one to implement the "[[todo/preview_changes]]" todo item,
-I quickly wrote it. Maybe this can be included in ikiwiki?
-
-This plugins uses HTML::Entities::encode_entities() on the page's content
-and wraps it in a `<pre>`...`</pre>` tag.
-
-Download from [here](http://www.jk.fr.eu.org/ikiwiki/plaintext.pm).
-
-## Problems
-
-Wikilinks are expanded as usual, and as such produce `<a href=...>text</a>`
-tags, which are displayed as plain text. Is there a way to disable the preprocessor
-for some types of pages?
\ No newline at end of file
diff --git a/doc/plugins/plaintext/.discussion.mdwn.swp b/doc/plugins/plaintext/.discussion.mdwn.swp
new file mode 100644 (file)
index 0000000..df2347f
Binary files /dev/null and b/doc/plugins/plaintext/.discussion.mdwn.swp differ
diff --git a/doc/plugins/txt.mdwn b/doc/plugins/txt.mdwn
new file mode 100644 (file)
index 0000000..8d8cb55
--- /dev/null
@@ -0,0 +1,14 @@
+[[template id=plugin name=txt author="[[Gabriel]]"]]
+[[tag type/format]]
+
+This plugin makes ikiwiki treat files with names ending in ".txt"
+as wiki pages.
+
+Unlike other [[type/format]] plugins, no formatting of markup in 
+txt files is done; the file contents is displayed to the user as-is,
+with html markup characters such as ">" escaped.
+
+The only exceptions are that [[WikiLinks|WikiLink]] and
+[[PreprocessorDirectives|PreprocessorDirective]] are still expanded by
+ikiwiki, and that, if the [[cpan URI::Find]] perl module is installed, URLs
+in the txt file are converted to hyperlinks.