aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/contrib/plaintext.mdwn
blob: 0350bc3ca7419abfe295d68ec0ae3a4663b26f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[[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?