From f0df1950493061d294ac0162ff350c1420c28a4c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 24 Jun 2008 20:48:45 -0400 Subject: [PATCH] new txt plugin, was previously contrib/plaintext --- debian/changelog | 1 + debian/copyright | 4 ++++ doc/plugins/contrib/plaintext.mdwn | 17 ----------------- doc/plugins/plaintext/.discussion.mdwn.swp | Bin 0 -> 12288 bytes .../{contrib => }/plaintext/discussion.mdwn | 0 doc/plugins/txt.mdwn | 14 ++++++++++++++ 6 files changed, 19 insertions(+), 17 deletions(-) delete mode 100644 doc/plugins/contrib/plaintext.mdwn create mode 100644 doc/plugins/plaintext/.discussion.mdwn.swp rename doc/plugins/{contrib => }/plaintext/discussion.mdwn (100%) create mode 100644 doc/plugins/txt.mdwn diff --git a/debian/changelog b/debian/changelog index 251761633..d92d5fa1a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,7 @@ ikiwiki (2.51) UNRELEASED; urgency=low * aggregate: Add template parameter. * Add support for the universal edit button (To get this on all pages of an exiting wiki, rebuild the wiki.) + * txt: New plugin, contributed by Gabriel McManus. -- Joey Hess Sun, 15 Jun 2008 15:03:33 -0400 diff --git a/debian/copyright b/debian/copyright index 2a7bbedf5..d25e0861a 100644 --- a/debian/copyright +++ b/debian/copyright @@ -96,6 +96,10 @@ Files: creole.pm Copyright: Copyright (C) 2008 Bernd Zeimetz License: GPL-2+ +Files: txt.pm +Copyright: Copyright (C) 2008 Gabriel McManus +License: GPL-2+ + Files: doc/logo/* Copyright: © 2006 Recai Oktaş License: GPL-2+ diff --git a/doc/plugins/contrib/plaintext.mdwn b/doc/plugins/contrib/plaintext.mdwn deleted file mode 100644 index 0350bc3ca..000000000 --- a/doc/plugins/contrib/plaintext.mdwn +++ /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 `
`...`
` tag. - -Download from [here](http://www.jk.fr.eu.org/ikiwiki/plaintext.pm). - -## Problems - -Wikilinks are expanded as usual, and as such produce `text` -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 index 0000000000000000000000000000000000000000..df2347f9eac4b56dc1422cafe0dde78db93ef831 GIT binary patch literal 12288 zcmeI2&yL(g5XL)P5Rd>0LgYp*943)=JxM@{vf@BoA>ya9Y=Z^)dooTIk%X=d#1`tz$QA9j0r`Qyb0bgj6e zaJ{J1!I%2x&*xuNPk*A+XP&om`?PEAE8XhTRw?y`7@WsY&du5k(7f{Hyt936T%4EQ zrC^r$t&K~3FU>0x%RWZqUC~y9JKaHEkqKl1k0EeQy>a!*<=0=^qnFO#eayQ2C=lGw9Ffm3jbu1C`JP=+|>f{Q~_2{Rn*y zy$QVxJvgh>AJBKux6pm)E9e&V4D|PNO8o_W4}A^Yhi*X^pjRM?wBvFJ`7nahR7sJo=(oL7Idf4ZXNfq>*(k`oNPTlR_|yxZtE;-c#uu{ zk@xvS&oRMa>qc{_VOZ_RuSmX5r(v%v)oeQs*1$tS>JFZGXSY~lTulqoEjgbk_5og& zzE5Q0xF4rzHyq^5tXRY;S`JQI>Vw5|uT&Sf3%=wSk#}VRmkBsxp<2D>$wZOvC0hB= z>O?iW-Z+M5Ij?(Q&6@XVxg~9_A0!mHJw_>L)dFzW$frRxx`QKKHhZ){pr+!OxSKp^ z=loW7W5v>PyFb~9-d40^ zGA*ocxGGRgShiTzN2GZ7!^Pp@y9SMbVx~Sgxf2Ozjy<9m-s&U2lh?SU??}gok716T zIE(m9CK-I`qvWG$Wh{_WxpfP3(LFh5? z0*zhwn3>Unt~S~w$p;fQ)qQOEX>_MS1aEnL)QlM)Gs5a2U?dpP82FeDz{|^}r3Ux6 zC*&og$VeIq`wm@#{RqBpsCOk^IJNZ6ZZrXJ8Vvh_9D+w78d*HPS%zTHCSzzoI5bFY OK^-ctX&P~3S^W!fN)9Lh literal 0 HcmV?d00001 diff --git a/doc/plugins/contrib/plaintext/discussion.mdwn b/doc/plugins/plaintext/discussion.mdwn similarity index 100% rename from doc/plugins/contrib/plaintext/discussion.mdwn rename to doc/plugins/plaintext/discussion.mdwn diff --git a/doc/plugins/txt.mdwn b/doc/plugins/txt.mdwn new file mode 100644 index 000000000..8d8cb55c2 --- /dev/null +++ b/doc/plugins/txt.mdwn @@ -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. -- 2.26.2