2007-08-16 17:21:20 +02:00
|
|
|
[[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?
|
|
|
|
|
2007-08-17 00:11:26 +02:00
|
|
|
This plugins uses HTML::Entities::encode_entities() on the page's content
|
|
|
|
and wraps it in a `<pre>`...`</pre>` tag.
|
2007-08-16 17:21:20 +02:00
|
|
|
|
|
|
|
Download from [here](http://www.jk.fr.eu.org/ikiwiki/plaintext.pm).
|
2007-08-17 00:56:44 +02:00
|
|
|
|
|
|
|
## 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?
|