ikiwiki/doc/plugins/contrib/plaintext.mdwn

17 lines
678 B
Plaintext
Raw Normal View History

[[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?