summaryrefslogtreecommitdiff
path: root/doc/plugins/txt
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-29 15:40:23 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-29 15:40:23 -0400
commit64def3eaeae4ddbe5cee61d08612da1eb1bc54d3 (patch)
treefd06c2a8227fe3c5636b94b3337f00ba762db9ac /doc/plugins/txt
parenta02c3f46ea79313a4e0f6df924efac067b0fd177 (diff)
parentd6c73e9ef6dcd89ade9ca64755d683ac88d46ae7 (diff)
Merge branch 'master' into tova
Diffstat (limited to 'doc/plugins/txt')
-rw-r--r--doc/plugins/txt/discussion.mdwn33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/plugins/txt/discussion.mdwn b/doc/plugins/txt/discussion.mdwn
new file mode 100644
index 000000000..6b907e65c
--- /dev/null
+++ b/doc/plugins/txt/discussion.mdwn
@@ -0,0 +1,33 @@
+I guess the reason I never thought to write this is when I put a .txt file
+in ikiwiki, I'm happy enough to see it copied through unchanged.
+
+I guess the advantage of using this plugin is that you get the page wrapper
+around the preformatted text, and could even inline such a page.
+
+There is not currently a good way to turn off some processing steps for
+some page types. It's either all or nothing. The patch in
+[[todo/format_escape]] might allow a formatter to register its own special
+version of htmllink that didn't do anything, but would that be enough?
+
+--[[Joey]]
+
+[Here](http://www.gmcmanus.org/plaintext.pm) is an alternate approach.
+It encodes entities using a filter hook, before wikilinks are linkified.
+So wikilinks turn up as links.
+It also uses URI::Find to turn URIs into links.
+
+I'm not very familiar with Perl, so this code could be improved.
+
+--Gabriel
+
+I like this approach! It sidesteps the annoying problem, and it actually
+makes the .txt format genuinely wiki-like, by allowing wikilinks and
+preprocessor directices.
+
+The only thing I am not sure about is the conversion of external urls to
+hyperlinks.
+
+Can you please add a copyright/license statemnt to the top of the plugin?
+If you do, I'll add it to ikiwiki. Thanks! --[[Joey]]
+
+> I've added copyright and license (GPLv2 or later). --Gabriel