NAME

Konstrukt::Plugin::wiki::markup::pre - Block plugin to handle code/preformatted sections

SYNOPSIS

        my $pre = use_plugin 'wiki::markup::pre';
        my $rv = $pre->process($block);

DESCRIPTION

This one will match if the first character of the first line of the block is a whitespace or a tab.

The block will then be enclosed by <pre> and </pre>. All child nodes will be tagged as finished to prevent further wiki parsing on them.

EXAMPLE

         although only the first line is indented
        the whole block will be marked as code.

METHODS

install

Installs the templates.

Parameters:

none

new

process

This method will do the work.

Parameters:

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

Konstrukt::Plugin::wiki